Skip to content

Resource

Source code in docs_src/capo_resource_explorer_2/types/resource.py
class Resource(TypedDict, closed=True):
    arn: NotRequired["str"]
    """<p>The <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon resource name (ARN)</a> of the resource.</p>"""
    owning_account_id: NotRequired["str"]
    """<p>The Amazon Web Services account that owns the resource.</p>"""
    region: NotRequired["str"]
    """<p>The Amazon Web Services Region in which the resource was created and exists.</p>"""
    resource_type: NotRequired["str"]
    """<p>The type of the resource.</p>"""
    service: NotRequired["str"]
    """<p>The Amazon Web Services service that owns the resource and is responsible for creating and updating it.</p>"""
    cfn_resource_type: NotRequired["str"]
    """<p>The CloudFormation resource type identifier for the resource, such as <code>AWS::EC2::Instance</code> or <code>AWS::S3::Bucket</code>.</p>"""
    last_reported_at: NotRequired["datetime.datetime"]
    """<p>The date and time that Resource Explorer last queried this resource and updated the index with the latest information about the resource.</p>"""
    properties: NotRequired[
        "capo_resource_explorer_2.types.resource_property_list.ResourcePropertyList"
    ]
    """<p>A structure with additional type-specific details about the resource. These properties can be added by turning on integration between Resource Explorer and other Amazon Web Services services.</p>"""

arn instance-attribute

arn: NotRequired[str]

The Amazon resource name (ARN) of the resource.

cfn_resource_type instance-attribute

cfn_resource_type: NotRequired[str]

The CloudFormation resource type identifier for the resource, such as AWS::EC2::Instance or AWS::S3::Bucket.

last_reported_at instance-attribute

last_reported_at: NotRequired[datetime]

The date and time that Resource Explorer last queried this resource and updated the index with the latest information about the resource.

owning_account_id instance-attribute

owning_account_id: NotRequired[str]

The Amazon Web Services account that owns the resource.

properties instance-attribute

properties: NotRequired[ResourcePropertyList]

A structure with additional type-specific details about the resource. These properties can be added by turning on integration between Resource Explorer and other Amazon Web Services services.

region instance-attribute

region: NotRequired[str]

The Amazon Web Services Region in which the resource was created and exists.

resource_type instance-attribute

resource_type: NotRequired[str]

The type of the resource.

service instance-attribute

service: NotRequired[str]

The Amazon Web Services service that owns the resource and is responsible for creating and updating it.