Skip to content

CloudFormation  >  Structures  >  ScannedResource

ScannedResource

Structure Class

ScannedResource dataclass

Bases: _SerdeShape

A scanned resource returned by ListResourceScanResources or ListResourceScanRelatedResources.

Attributes

managed_by_stack class-attribute instance-attribute
managed_by_stack: bool | None = ...

If true, the resource is managed by a CloudFormation stack.

resource_identifier class-attribute instance-attribute
resource_identifier: dict[str, str] | None = ...

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 (CLI) User Guide.

resource_type class-attribute instance-attribute
resource_type: str | None = ...

The type of the resource, such as AWS::DynamoDB::Table. For the list of supported resources, see Resource type support for imports and drift detection In the CloudFormation User Guide