#[non_exhaustive]pub struct ScannedResourceBuilder { /* private fields */ }
Expand description
A builder for ScannedResource
.
Implementations§
source§impl ScannedResourceBuilder
impl ScannedResourceBuilder
sourcepub fn resource_type(self, input: impl Into<String>) -> Self
pub fn resource_type(self, input: impl Into<String>) -> Self
The type of the resource, such as AWS::DynamoDB::Table
. For the list of supported resources, see Resource type support In the CloudFormation User Guide
sourcepub fn set_resource_type(self, input: Option<String>) -> Self
pub fn set_resource_type(self, input: Option<String>) -> Self
The type of the resource, such as AWS::DynamoDB::Table
. For the list of supported resources, see Resource type support In the CloudFormation User Guide
sourcepub fn get_resource_type(&self) -> &Option<String>
pub fn get_resource_type(&self) -> &Option<String>
The type of the resource, such as AWS::DynamoDB::Table
. For the list of supported resources, see Resource type support In the CloudFormation User Guide
sourcepub fn resource_identifier(
self,
k: impl Into<String>,
v: impl Into<String>
) -> Self
pub fn resource_identifier( self, k: impl Into<String>, v: impl Into<String> ) -> Self
Adds a key-value pair to resource_identifier
.
To override the contents of this collection use set_resource_identifier
.
A list of up to 256 key-value pairs that identifies for the scanned resource. The key is the name of one of the primary identifiers for the resource. (Primary identifiers are specified in the primaryIdentifier
list in the resource schema.) The value is the value of that primary identifier. For example, for a AWS::DynamoDB::Table
resource, the primary identifiers is TableName
so the key-value pair could be "TableName": "MyDDBTable"
. For more information, see primaryIdentifier in the CloudFormation Command Line Interface User guide for extension development.
sourcepub fn set_resource_identifier(
self,
input: Option<HashMap<String, String>>
) -> Self
pub fn set_resource_identifier( self, input: Option<HashMap<String, String>> ) -> Self
A list of up to 256 key-value pairs that identifies for the scanned resource. The key is the name of one of the primary identifiers for the resource. (Primary identifiers are specified in the primaryIdentifier
list in the resource schema.) The value is the value of that primary identifier. For example, for a AWS::DynamoDB::Table
resource, the primary identifiers is TableName
so the key-value pair could be "TableName": "MyDDBTable"
. For more information, see primaryIdentifier in the CloudFormation Command Line Interface User guide for extension development.
sourcepub fn get_resource_identifier(&self) -> &Option<HashMap<String, String>>
pub fn get_resource_identifier(&self) -> &Option<HashMap<String, String>>
A list of up to 256 key-value pairs that identifies for the scanned resource. The key is the name of one of the primary identifiers for the resource. (Primary identifiers are specified in the primaryIdentifier
list in the resource schema.) The value is the value of that primary identifier. For example, for a AWS::DynamoDB::Table
resource, the primary identifiers is TableName
so the key-value pair could be "TableName": "MyDDBTable"
. For more information, see primaryIdentifier in the CloudFormation Command Line Interface User guide for extension development.
sourcepub fn managed_by_stack(self, input: bool) -> Self
pub fn managed_by_stack(self, input: bool) -> Self
If true
, the resource is managed by a CloudFormation stack.
sourcepub fn set_managed_by_stack(self, input: Option<bool>) -> Self
pub fn set_managed_by_stack(self, input: Option<bool>) -> Self
If true
, the resource is managed by a CloudFormation stack.
sourcepub fn get_managed_by_stack(&self) -> &Option<bool>
pub fn get_managed_by_stack(&self) -> &Option<bool>
If true
, the resource is managed by a CloudFormation stack.
sourcepub fn build(self) -> ScannedResource
pub fn build(self) -> ScannedResource
Consumes the builder and constructs a ScannedResource
.
Trait Implementations§
source§impl Clone for ScannedResourceBuilder
impl Clone for ScannedResourceBuilder
source§fn clone(&self) -> ScannedResourceBuilder
fn clone(&self) -> ScannedResourceBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ScannedResourceBuilder
impl Debug for ScannedResourceBuilder
source§impl Default for ScannedResourceBuilder
impl Default for ScannedResourceBuilder
source§fn default() -> ScannedResourceBuilder
fn default() -> ScannedResourceBuilder
source§impl PartialEq for ScannedResourceBuilder
impl PartialEq for ScannedResourceBuilder
source§fn eq(&self, other: &ScannedResourceBuilder) -> bool
fn eq(&self, other: &ScannedResourceBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ScannedResourceBuilder
Auto Trait Implementations§
impl Freeze for ScannedResourceBuilder
impl RefUnwindSafe for ScannedResourceBuilder
impl Send for ScannedResourceBuilder
impl Sync for ScannedResourceBuilder
impl Unpin for ScannedResourceBuilder
impl UnwindSafe for ScannedResourceBuilder
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