Skip to content

Resource

Source code in docs_src/capo_ram/types/resource.py
class Resource(TypedDict, closed=True):
    arn: NotRequired["capo_ram.types.string.String"]
    """<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>"""
    type: NotRequired["capo_ram.types.string.String"]
    """<p>The resource type. This takes the form of: <code>service-code</code>:<code>resource-code</code>, and is case-insensitive. For example, an Amazon EC2 Subnet would be represented by the string <code>ec2:subnet</code>.</p>"""
    resource_share_arn: NotRequired["capo_ram.types.string.String"]
    """<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 share this resource is associated with.</p>"""
    resource_group_arn: NotRequired["capo_ram.types.string.String"]
    """<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 group. This value is available only if the resource is part of a resource group.</p>"""
    status: NotRequired["capo_ram.types.resource_status.ResourceStatus"]
    """<p>The current status of the resource.</p>"""
    status_message: NotRequired["capo_ram.types.string.String"]
    """<p>A message about the status of the resource.</p>"""
    creation_time: NotRequired["capo_ram.types.date_time.DateTime"]
    """<p>The date and time when the resource was associated with the resource share.</p>"""
    last_updated_time: NotRequired["capo_ram.types.date_time.DateTime"]
    """<p>The date an time when the association between the resource and the resource share was last updated.</p>"""
    resource_region_scope: NotRequired[
        "capo_ram.types.resource_region_scope.ResourceRegionScope"
    ]
    """<p>Specifies the scope of visibility of this resource:</p> <ul> <li> <p> <b>REGIONAL</b> – The resource can be accessed only by using requests that target the Amazon Web Services Region in which the resource exists.</p> </li> <li> <p> <b>GLOBAL</b> – The resource can be accessed from any Amazon Web Services Region.</p> </li> </ul>"""

arn instance-attribute

arn: NotRequired[String]

The Amazon Resource Name (ARN) of the resource.

creation_time instance-attribute

creation_time: NotRequired[DateTime]

The date and time when the resource was associated with the resource share.

last_updated_time instance-attribute

last_updated_time: NotRequired[DateTime]

The date an time when the association between the resource and the resource share was last updated.

resource_group_arn instance-attribute

resource_group_arn: NotRequired[String]

The Amazon Resource Name (ARN) of the resource group. This value is available only if the resource is part of a resource group.

resource_region_scope instance-attribute

resource_region_scope: NotRequired[ResourceRegionScope]

Specifies the scope of visibility of this resource:

  • REGIONAL – The resource can be accessed only by using requests that target the Amazon Web Services Region in which the resource exists.

  • GLOBAL – The resource can be accessed from any Amazon Web Services Region.

resource_share_arn instance-attribute

resource_share_arn: NotRequired[String]

The Amazon Resource Name (ARN) of the resource share this resource is associated with.

status instance-attribute

status: NotRequired[ResourceStatus]

The current status of the resource.

status_message instance-attribute

status_message: NotRequired[String]

A message about the status of the resource.

type instance-attribute

type: NotRequired[String]

The resource type. This takes the form of: service-code:resource-code, and is case-insensitive. For example, an Amazon EC2 Subnet would be represented by the string ec2:subnet.