Skip to content

Type definitions#

Index > ResilienceHub > Type definitions

Auto-generated documentation for ResilienceHub type annotations stubs module mypy-boto3-resiliencehub.

TimestampTypeDef#

# TimestampTypeDef definition

TimestampTypeDef = Union[
    datetime,
    str,
]

ResponseMetadataTypeDef#

# ResponseMetadataTypeDef definition

class ResponseMetadataTypeDef(TypedDict):
    RequestId: str,
    HTTPStatusCode: int,
    HTTPHeaders: Dict[str, str],
    RetryAttempts: int,
    HostId: NotRequired[str],

RecommendationItemTypeDef#

# RecommendationItemTypeDef definition

class RecommendationItemTypeDef(TypedDict):
    alreadyImplemented: NotRequired[bool],
    excludeReason: NotRequired[ExcludeRecommendationReasonType],  # (1)
    excluded: NotRequired[bool],
    resourceId: NotRequired[str],
    targetAccountId: NotRequired[str],
    targetRegion: NotRequired[str],
  1. See ExcludeRecommendationReasonType

CostTypeDef#

# CostTypeDef definition

class CostTypeDef(TypedDict):
    amount: float,
    currency: str,
    frequency: CostFrequencyType,  # (1)
  1. See CostFrequencyType

DisruptionComplianceTypeDef#

# DisruptionComplianceTypeDef definition

class DisruptionComplianceTypeDef(TypedDict):
    complianceStatus: ComplianceStatusType,  # (1)
    achievableRpoInSecs: NotRequired[int],
    achievableRtoInSecs: NotRequired[int],
    currentRpoInSecs: NotRequired[int],
    currentRtoInSecs: NotRequired[int],
    message: NotRequired[str],
    rpoDescription: NotRequired[str],
    rpoReferenceId: NotRequired[str],
    rtoDescription: NotRequired[str],
    rtoReferenceId: NotRequired[str],
  1. See ComplianceStatusType

AppComponentTypeDef#

# AppComponentTypeDef definition

class AppComponentTypeDef(TypedDict):
    name: str,
    type: str,
    additionalInfo: NotRequired[Dict[str, List[str]]],
    id: NotRequired[str],

EksSourceClusterNamespaceTypeDef#

# EksSourceClusterNamespaceTypeDef definition

class EksSourceClusterNamespaceTypeDef(TypedDict):
    eksClusterArn: str,
    namespace: str,

TerraformSourceTypeDef#

# TerraformSourceTypeDef definition

class TerraformSourceTypeDef(TypedDict):
    s3StateFileUrl: str,

AppSummaryTypeDef#

# AppSummaryTypeDef definition

class AppSummaryTypeDef(TypedDict):
    appArn: str,
    creationTime: datetime,
    name: str,
    assessmentSchedule: NotRequired[AppAssessmentScheduleTypeType],  # (1)
    complianceStatus: NotRequired[AppComplianceStatusTypeType],  # (2)
    description: NotRequired[str],
    driftStatus: NotRequired[AppDriftStatusTypeType],  # (3)
    lastAppComplianceEvaluationTime: NotRequired[datetime],
    resiliencyScore: NotRequired[float],
    rpoInSecs: NotRequired[int],
    rtoInSecs: NotRequired[int],
    status: NotRequired[AppStatusTypeType],  # (4)
  1. See AppAssessmentScheduleTypeType
  2. See AppComplianceStatusTypeType
  3. See AppDriftStatusTypeType
  4. See AppStatusTypeType

EventSubscriptionTypeDef#

# EventSubscriptionTypeDef definition

class EventSubscriptionTypeDef(TypedDict):
    eventType: EventTypeType,  # (1)
    name: str,
    snsTopicArn: NotRequired[str],
  1. See EventTypeType

PermissionModelTypeDef#

# PermissionModelTypeDef definition

class PermissionModelTypeDef(TypedDict):
    type: PermissionModelTypeType,  # (1)
    crossAccountRoleArns: NotRequired[Sequence[str]],
    invokerRoleName: NotRequired[str],
  1. See PermissionModelTypeType

AppVersionSummaryTypeDef#

# AppVersionSummaryTypeDef definition

class AppVersionSummaryTypeDef(TypedDict):
    appVersion: str,
    creationTime: NotRequired[datetime],
    identifier: NotRequired[int],
    versionName: NotRequired[str],

BatchUpdateRecommendationStatusFailedEntryTypeDef#

# BatchUpdateRecommendationStatusFailedEntryTypeDef definition

class BatchUpdateRecommendationStatusFailedEntryTypeDef(TypedDict):
    entryId: str,
    errorMessage: str,

UpdateRecommendationStatusItemTypeDef#

# UpdateRecommendationStatusItemTypeDef definition

class UpdateRecommendationStatusItemTypeDef(TypedDict):
    resourceId: NotRequired[str],
    targetAccountId: NotRequired[str],
    targetRegion: NotRequired[str],

RecommendationDisruptionComplianceTypeDef#

# RecommendationDisruptionComplianceTypeDef definition

class RecommendationDisruptionComplianceTypeDef(TypedDict):
    expectedComplianceStatus: ComplianceStatusType,  # (1)
    expectedRpoDescription: NotRequired[str],
    expectedRpoInSecs: NotRequired[int],
    expectedRtoDescription: NotRequired[str],
    expectedRtoInSecs: NotRequired[int],
  1. See ComplianceStatusType

CreateAppVersionAppComponentRequestRequestTypeDef#

# CreateAppVersionAppComponentRequestRequestTypeDef definition

class CreateAppVersionAppComponentRequestRequestTypeDef(TypedDict):
    appArn: str,
    name: str,
    type: str,
    additionalInfo: NotRequired[Mapping[str, Sequence[str]]],
    clientToken: NotRequired[str],
    id: NotRequired[str],

LogicalResourceIdTypeDef#

# LogicalResourceIdTypeDef definition

class LogicalResourceIdTypeDef(TypedDict):
    identifier: str,
    eksSourceName: NotRequired[str],
    logicalStackName: NotRequired[str],
    resourceGroupName: NotRequired[str],
    terraformSourceName: NotRequired[str],

CreateRecommendationTemplateRequestRequestTypeDef#

# CreateRecommendationTemplateRequestRequestTypeDef definition

class CreateRecommendationTemplateRequestRequestTypeDef(TypedDict):
    assessmentArn: str,
    name: str,
    bucketName: NotRequired[str],
    clientToken: NotRequired[str],
    format: NotRequired[TemplateFormatType],  # (1)
    recommendationIds: NotRequired[Sequence[str]],
    recommendationTypes: NotRequired[Sequence[RenderRecommendationTypeType]],  # (2)
    tags: NotRequired[Mapping[str, str]],
  1. See TemplateFormatType
  2. See RenderRecommendationTypeType

FailurePolicyTypeDef#

# FailurePolicyTypeDef definition

class FailurePolicyTypeDef(TypedDict):
    rpoInSecs: int,
    rtoInSecs: int,

DeleteAppAssessmentRequestRequestTypeDef#

# DeleteAppAssessmentRequestRequestTypeDef definition

class DeleteAppAssessmentRequestRequestTypeDef(TypedDict):
    assessmentArn: str,
    clientToken: NotRequired[str],

DeleteAppRequestRequestTypeDef#

# DeleteAppRequestRequestTypeDef definition

class DeleteAppRequestRequestTypeDef(TypedDict):
    appArn: str,
    clientToken: NotRequired[str],
    forceDelete: NotRequired[bool],

DeleteAppVersionAppComponentRequestRequestTypeDef#

# DeleteAppVersionAppComponentRequestRequestTypeDef definition

class DeleteAppVersionAppComponentRequestRequestTypeDef(TypedDict):
    appArn: str,
    id: str,
    clientToken: NotRequired[str],

DeleteRecommendationTemplateRequestRequestTypeDef#

# DeleteRecommendationTemplateRequestRequestTypeDef definition

class DeleteRecommendationTemplateRequestRequestTypeDef(TypedDict):
    recommendationTemplateArn: str,
    clientToken: NotRequired[str],

DeleteResiliencyPolicyRequestRequestTypeDef#

# DeleteResiliencyPolicyRequestRequestTypeDef definition

class DeleteResiliencyPolicyRequestRequestTypeDef(TypedDict):
    policyArn: str,
    clientToken: NotRequired[str],

DescribeAppAssessmentRequestRequestTypeDef#

# DescribeAppAssessmentRequestRequestTypeDef definition

class DescribeAppAssessmentRequestRequestTypeDef(TypedDict):
    assessmentArn: str,

DescribeAppRequestRequestTypeDef#

# DescribeAppRequestRequestTypeDef definition

class DescribeAppRequestRequestTypeDef(TypedDict):
    appArn: str,

DescribeAppVersionAppComponentRequestRequestTypeDef#

# DescribeAppVersionAppComponentRequestRequestTypeDef definition

class DescribeAppVersionAppComponentRequestRequestTypeDef(TypedDict):
    appArn: str,
    appVersion: str,
    id: str,

DescribeAppVersionRequestRequestTypeDef#

# DescribeAppVersionRequestRequestTypeDef definition

class DescribeAppVersionRequestRequestTypeDef(TypedDict):
    appArn: str,
    appVersion: str,

DescribeAppVersionResourcesResolutionStatusRequestRequestTypeDef#

# DescribeAppVersionResourcesResolutionStatusRequestRequestTypeDef definition

class DescribeAppVersionResourcesResolutionStatusRequestRequestTypeDef(TypedDict):
    appArn: str,
    appVersion: str,
    resolutionId: NotRequired[str],

DescribeAppVersionTemplateRequestRequestTypeDef#

# DescribeAppVersionTemplateRequestRequestTypeDef definition

class DescribeAppVersionTemplateRequestRequestTypeDef(TypedDict):
    appArn: str,
    appVersion: str,

DescribeDraftAppVersionResourcesImportStatusRequestRequestTypeDef#

# DescribeDraftAppVersionResourcesImportStatusRequestRequestTypeDef definition

class DescribeDraftAppVersionResourcesImportStatusRequestRequestTypeDef(TypedDict):
    appArn: str,

DescribeResiliencyPolicyRequestRequestTypeDef#

# DescribeResiliencyPolicyRequestRequestTypeDef definition

class DescribeResiliencyPolicyRequestRequestTypeDef(TypedDict):
    policyArn: str,

EksSourceTypeDef#

# EksSourceTypeDef definition

class EksSourceTypeDef(TypedDict):
    eksClusterArn: str,
    namespaces: Sequence[str],

ListAlarmRecommendationsRequestRequestTypeDef#

# ListAlarmRecommendationsRequestRequestTypeDef definition

class ListAlarmRecommendationsRequestRequestTypeDef(TypedDict):
    assessmentArn: str,
    maxResults: NotRequired[int],
    nextToken: NotRequired[str],

ListAppAssessmentComplianceDriftsRequestRequestTypeDef#

# ListAppAssessmentComplianceDriftsRequestRequestTypeDef definition

class ListAppAssessmentComplianceDriftsRequestRequestTypeDef(TypedDict):
    assessmentArn: str,
    maxResults: NotRequired[int],
    nextToken: NotRequired[str],

ListAppAssessmentsRequestRequestTypeDef#

# ListAppAssessmentsRequestRequestTypeDef definition

class ListAppAssessmentsRequestRequestTypeDef(TypedDict):
    appArn: NotRequired[str],
    assessmentName: NotRequired[str],
    assessmentStatus: NotRequired[Sequence[AssessmentStatusType]],  # (1)
    complianceStatus: NotRequired[ComplianceStatusType],  # (2)
    invoker: NotRequired[AssessmentInvokerType],  # (3)
    maxResults: NotRequired[int],
    nextToken: NotRequired[str],
    reverseOrder: NotRequired[bool],
  1. See AssessmentStatusType
  2. See ComplianceStatusType
  3. See AssessmentInvokerType

ListAppComponentCompliancesRequestRequestTypeDef#

# ListAppComponentCompliancesRequestRe