Skip to content

ApiInventoryItem

Source code in docs_src/capo_apiportal/types/api_inventory_item.py
class ApiInventoryItem(TypedDict, closed=True):
    method: "capo_apiportal.types.http_method.HttpMethod"
    """The HTTP method of the API."""
    host: "capo_apiportal.types.host.Host"
    port: "int"
    """The port the API listens on, from 0 to 65535."""
    path: "capo_apiportal.types.path.Path"
    """The request path of the API."""
    account_id: "capo_apiportal.types.account_id.AccountId"
    """The AWS account ID that owns the API."""
    resource_arn: "capo_apiportal.types.resource_arn.ResourceArn"
    """The ARN of the resource that serves the API, such as an API Gateway stage or a load balancer."""
    region: "str"
    """The AWS Region the API was discovered in."""
    discovery_source: "capo_apiportal.types.discovery_source.DiscoverySource"
    first_seen: NotRequired["datetime.datetime"]
    """When discovery first observed the API."""
    last_seen: NotRequired["datetime.datetime"]
    """When discovery most recently observed the API."""
    visibility: NotRequired["capo_apiportal.types.visibility.Visibility"]
    waf_status: NotRequired["capo_apiportal.types.waf_status.WafStatus"]
    classification: NotRequired["capo_apiportal.types.classification.Classification"]
    managed_by: NotRequired["capo_apiportal.types.managed_by.ManagedBy"]
    workloads: NotRequired["capo_apiportal.types.workload_list.WorkloadList"]
    """AI protocols seen in this API's traffic, each listed at most once. Absent when none has been reported, which includes an account that has not enabled AI discovery."""

account_id instance-attribute

account_id: AccountId

The AWS account ID that owns the API.

classification instance-attribute

classification: NotRequired[Classification]

discovery_source instance-attribute

discovery_source: DiscoverySource

first_seen instance-attribute

first_seen: NotRequired[datetime]

When discovery first observed the API.

host instance-attribute

host: Host

last_seen instance-attribute

last_seen: NotRequired[datetime]

When discovery most recently observed the API.

managed_by instance-attribute

managed_by: NotRequired[ManagedBy]

method instance-attribute

method: HttpMethod

The HTTP method of the API.

path instance-attribute

path: Path

The request path of the API.

port instance-attribute

port: int

The port the API listens on, from 0 to 65535.

region instance-attribute

region: str

The AWS Region the API was discovered in.

resource_arn instance-attribute

resource_arn: ResourceArn

The ARN of the resource that serves the API, such as an API Gateway stage or a load balancer.

visibility instance-attribute

visibility: NotRequired[Visibility]

waf_status instance-attribute

waf_status: NotRequired[WafStatus]

workloads instance-attribute

workloads: NotRequired[WorkloadList]

AI protocols seen in this API's traffic, each listed at most once. Absent when none has been reported, which includes an account that has not enabled AI discovery.