Struct aws_sdk_cloudformation::types::ScannedResource
source · #[non_exhaustive]pub struct ScannedResource {
pub resource_type: Option<String>,
pub resource_identifier: Option<HashMap<String, String>>,
pub managed_by_stack: Option<bool>,
}
Expand description
A scanned resource returned by ListResourceScanResources
or ListResourceScanRelatedResources
.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.resource_type: 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
resource_identifier: 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.
managed_by_stack: Option<bool>
If true
, the resource is managed by a CloudFormation stack.
Implementations§
source§impl ScannedResource
impl ScannedResource
sourcepub fn resource_type(&self) -> Option<&str>
pub fn resource_type(&self) -> Option<&str>
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) -> Option<&HashMap<String, String>>
pub fn 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) -> Option<bool>
pub fn managed_by_stack(&self) -> Option<bool>
If true
, the resource is managed by a CloudFormation stack.
source§impl ScannedResource
impl ScannedResource
sourcepub fn builder() -> ScannedResourceBuilder
pub fn builder() -> ScannedResourceBuilder
Creates a new builder-style object to manufacture ScannedResource
.
Trait Implementations§
source§impl Clone for ScannedResource
impl Clone for ScannedResource
source§fn clone(&self) -> ScannedResource
fn clone(&self) -> ScannedResource
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ScannedResource
impl Debug for ScannedResource
source§impl PartialEq for ScannedResource
impl PartialEq for ScannedResource
source§fn eq(&self, other: &ScannedResource) -> bool
fn eq(&self, other: &ScannedResource) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ScannedResource
Auto Trait Implementations§
impl Freeze for ScannedResource
impl RefUnwindSafe for ScannedResource
impl Send for ScannedResource
impl Sync for ScannedResource
impl Unpin for ScannedResource
impl UnwindSafe for ScannedResource
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