Skip to content

IdentityContextStatus

Source code in docs_src/capo_mwaa_serverless/types/identity_context_status.py
class IdentityContextStatus(TypedDict, closed=True):
    status: NotRequired[
        "capo_mwaa_serverless.types.identity_context_status_value.IdentityContextStatusValue"
    ]
    """<p>The identity context has one of the following statuses:</p> <ul> <li> <p> <code>ACTIVE</code> – Scheduled runs can carry the identity context.</p> </li> <li> <p> <code>EXPIRED</code> – Scheduled runs can't carry the identity context, and they fail until you update the workflow with <code>OnBehalfOf</code> set to <code>ORIGIN_IDENTITY</code> again. Sign the update request with credentials that include the identity context that you want scheduled runs to carry.</p> </li> </ul>"""
    reason: NotRequired["str"]
    """<p>This message explains why <code>Status</code> is <code>EXPIRED</code>, for example because the identity context reached its maximum lifetime or was revoked. Amazon Managed Workflows for Apache Airflow Serverless returns this field only when <code>Status</code> is <code>EXPIRED</code>.</p>"""
    expires_at: NotRequired["capo_mwaa_serverless.types.timestamp_value.TimestampValue"]
    """<p>This value is the latest time that scheduled runs can carry the identity context, in ISO 8601 date-time format. Amazon Managed Workflows for Apache Airflow Serverless can't renew the identity context past this time. For IAM Identity Center users, the background session duration that you configure sets this limit. To extend it, update the workflow with <code>OnBehalfOf</code> set to <code>ORIGIN_IDENTITY</code> again.</p>"""

expires_at instance-attribute

expires_at: NotRequired[TimestampValue]

This value is the latest time that scheduled runs can carry the identity context, in ISO 8601 date-time format. Amazon Managed Workflows for Apache Airflow Serverless can't renew the identity context past this time. For IAM Identity Center users, the background session duration that you configure sets this limit. To extend it, update the workflow with OnBehalfOf set to ORIGIN_IDENTITY again.

reason instance-attribute

reason: NotRequired[str]

This message explains why Status is EXPIRED, for example because the identity context reached its maximum lifetime or was revoked. Amazon Managed Workflows for Apache Airflow Serverless returns this field only when Status is EXPIRED.

status instance-attribute

status: NotRequired[IdentityContextStatusValue]

The identity context has one of the following statuses:

  • ACTIVE – Scheduled runs can carry the identity context.

  • EXPIRED – Scheduled runs can't carry the identity context, and they fail until you update the workflow with OnBehalfOf set to ORIGIN_IDENTITY again. Sign the update request with credentials that include the identity context that you want scheduled runs to carry.