Skip to content

Type definitions#

Index > TrustedAdvisorPublicAPI > Type definitions

Auto-generated documentation for TrustedAdvisorPublicAPI type annotations stubs module mypy-boto3-trustedadvisor.

TimestampTypeDef#

# TimestampTypeDef definition

TimestampTypeDef = Union[
    datetime,
    str,
]

AccountRecommendationLifecycleSummaryTypeDef#

# AccountRecommendationLifecycleSummaryTypeDef definition

class AccountRecommendationLifecycleSummaryTypeDef(TypedDict):
    accountId: NotRequired[str],
    accountRecommendationArn: NotRequired[str],
    lastUpdatedAt: NotRequired[datetime],
    lifecycleStage: NotRequired[RecommendationLifecycleStageType],  # (1)
    updateReason: NotRequired[str],
    updateReasonCode: NotRequired[UpdateRecommendationLifecycleStageReasonCodeType],  # (2)
    updatedOnBehalfOf: NotRequired[str],
    updatedOnBehalfOfJobTitle: NotRequired[str],
  1. See RecommendationLifecycleStageType
  2. See UpdateRecommendationLifecycleStageReasonCodeType

RecommendationResourceExclusionTypeDef#

# RecommendationResourceExclusionTypeDef definition

class RecommendationResourceExclusionTypeDef(TypedDict):
    arn: str,
    isExcluded: bool,

ResponseMetadataTypeDef#

# ResponseMetadataTypeDef definition

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

UpdateRecommendationResourceExclusionErrorTypeDef#

# UpdateRecommendationResourceExclusionErrorTypeDef definition

class UpdateRecommendationResourceExclusionErrorTypeDef(TypedDict):
    arn: NotRequired[str],
    errorCode: NotRequired[str],
    errorMessage: NotRequired[str],

CheckSummaryTypeDef#

# CheckSummaryTypeDef definition

class CheckSummaryTypeDef(TypedDict):
    arn: str,
    awsServices: List[str],
    description: str,
    id: str,
    metadata: Dict[str, str],
    name: str,
    pillars: List[RecommendationPillarType],  # (1)
    source: RecommendationSourceType,  # (2)
  1. See RecommendationPillarType
  2. See RecommendationSourceType

GetOrganizationRecommendationRequestRequestTypeDef#

# GetOrganizationRecommendationRequestRequestTypeDef definition

class GetOrganizationRecommendationRequestRequestTypeDef(TypedDict):
    organizationRecommendationIdentifier: str,

GetRecommendationRequestRequestTypeDef#

# GetRecommendationRequestRequestTypeDef definition

class GetRecommendationRequestRequestTypeDef(TypedDict):
    recommendationIdentifier: str,

PaginatorConfigTypeDef#

# PaginatorConfigTypeDef definition

class PaginatorConfigTypeDef(TypedDict):
    MaxItems: NotRequired[int],
    PageSize: NotRequired[int],
    StartingToken: NotRequired[str],

ListChecksRequestRequestTypeDef#

# ListChecksRequestRequestTypeDef definition

class ListChecksRequestRequestTypeDef(TypedDict):
    awsService: NotRequired[str],
    language: NotRequired[RecommendationLanguageType],  # (1)
    maxResults: NotRequired[int],
    nextToken: NotRequired[str],
    pillar: NotRequired[RecommendationPillarType],  # (2)
    source: NotRequired[RecommendationSourceType],  # (3)
  1. See RecommendationLanguageType
  2. See RecommendationPillarType
  3. See RecommendationSourceType

ListOrganizationRecommendationAccountsRequestRequestTypeDef#

# ListOrganizationRecommendationAccountsRequestRequestTypeDef definition

class ListOrganizationRecommendationAccountsRequestRequestTypeDef(TypedDict):
    organizationRecommendationIdentifier: str,
    affectedAccountId: NotRequired[str],
    maxResults: NotRequired[int],
    nextToken: NotRequired[str],

ListOrganizationRecommendationResourcesRequestRequestTypeDef#

# ListOrganizationRecommendationResourcesRequestRequestTypeDef definition

class ListOrganizationRecommendationResourcesRequestRequestTypeDef(TypedDict):
    organizationRecommendationIdentifier: str,
    affectedAccountId: NotRequired[str],
    exclusionStatus: NotRequired[ExclusionStatusType],  # (1)
    maxResults: NotRequired[int],
    nextToken: NotRequired[str],
    regionCode: NotRequired[str],
    status: NotRequired[ResourceStatusType],  # (2)
  1. See ExclusionStatusType
  2. See ResourceStatusType

OrganizationRecommendationResourceSummaryTypeDef#

# OrganizationRecommendationResourceSummaryTypeDef definition

class OrganizationRecommendationResourceSummaryTypeDef(TypedDict):
    arn: str,
    awsResourceId: str,
    id: str,
    lastUpdatedAt: datetime,
    metadata: Dict[str, str],
    recommendationArn: str,
    regionCode: str,
    status: ResourceStatusType,  # (2)
    accountId: NotRequired[str],
    exclusionStatus: NotRequired[ExclusionStatusType],  # (1)
  1. See ExclusionStatusType
  2. See ResourceStatusType

ListRecommendationResourcesRequestRequestTypeDef#

# ListRecommendationResourcesRequestRequestTypeDef definition

class ListRecommendationResourcesRequestRequestTypeDef(TypedDict):
    recommendationIdentifier: str,
    exclusionStatus: NotRequired[ExclusionStatusType],  # (1)
    maxResults: NotRequired[int],
    nextToken: NotRequired[str],
    regionCode: NotRequired[str],
    status: NotRequired[ResourceStatusType],  # (2)
  1. See ExclusionStatusType
  2. See ResourceStatusType

RecommendationResourceSummaryTypeDef#

# RecommendationResourceSummaryTypeDef definition

class RecommendationResourceSummaryTypeDef(TypedDict):
    arn: str,
    awsResourceId: str,
    id: str,
    lastUpdatedAt: datetime,
    metadata: Dict[str, str],
    recommendationArn: str,
    regionCode: str,
    status: ResourceStatusType,  # (2)
    exclusionStatus: NotRequired[ExclusionStatusType],  # (1)
  1. See ExclusionStatusType
  2. See ResourceStatusType

RecommendationResourcesAggregatesTypeDef#

# RecommendationResourcesAggregatesTypeDef definition

class RecommendationResourcesAggregatesTypeDef(TypedDict):
    errorCount: int,
    okCount: int,
    warningCount: int,

RecommendationCostOptimizingAggregatesTypeDef#

# RecommendationCostOptimizingAggregatesTypeDef definition

class RecommendationCostOptimizingAggregatesTypeDef(TypedDict):
    estimatedMonthlySavings: float,
    estimatedPercentMonthlySavings: float,

UpdateOrganizationRecommendationLifecycleRequestRequestTypeDef#

# UpdateOrganizationRecommendationLifecycleRequestRequestTypeDef definition

class UpdateOrganizationRecommendationLifecycleRequestRequestTypeDef(TypedDict):
    lifecycleStage: UpdateRecommendationLifecycleStageType,  # (1)
    organizationRecommendationIdentifier: str,
    updateReason: NotRequired[str],
    updateReasonCode: NotRequired[UpdateRecommendationLifecycleStageReasonCodeType],  # (2)
  1. See UpdateRecommendationLifecycleStageType
  2. See UpdateRecommendationLifecycleStageReasonCodeType

UpdateRecommendationLifecycleRequestRequestTypeDef#

# UpdateRecommendationLifecycleRequestRequestTypeDef definition

class UpdateRecommendationLifecycleRequestRequestTypeDef(TypedDict):
    lifecycleStage: UpdateRecommendationLifecycleStageType,  # (1)
    recommendationIdentifier: str,
    updateReason: NotRequired[str],
    updateReasonCode: NotRequired[UpdateRecommendationLifecycleStageReasonCodeType],  # (2)
  1. See UpdateRecommendationLifecycleStageType
  2. See UpdateRecommendationLifecycleStageReasonCodeType

BatchUpdateRecommendationResourceExclusionRequestRequestTypeDef#

# BatchUpdateRecommendationResourceExclusionRequestRequestTypeDef definition

class BatchUpdateRecommendationResourceExclusionRequestRequestTypeDef(TypedDict):
    recommendationResourceExclusions: Sequence[RecommendationResourceExclusionTypeDef],  # (1)
  1. See RecommendationResourceExclusionTypeDef

EmptyResponseMetadataTypeDef#

# EmptyResponseMetadataTypeDef definition

class EmptyResponseMetadataTypeDef(TypedDict):
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

ListOrganizationRecommendationAccountsResponseTypeDef#

# ListOrganizationRecommendationAccountsResponseTypeDef definition

class ListOrganizationRecommendationAccountsResponseTypeDef(TypedDict):
    accountRecommendationLifecycleSummaries: List[AccountRecommendationLifecycleSummaryTypeDef],  # (1)
    nextToken: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See AccountRecommendationLifecycleSummaryTypeDef
  2. See ResponseMetadataTypeDef

BatchUpdateRecommendationResourceExclusionResponseTypeDef#

# BatchUpdateRecommendationResourceExclusionResponseTypeDef definition

class BatchUpdateRecommendationResourceExclusionResponseTypeDef(TypedDict):
    batchUpdateRecommendationResourceExclusionErrors: List[UpdateRecommendationResourceExclusionErrorTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See UpdateRecommendationResourceExclusionErrorTypeDef
  2. See ResponseMetadataTypeDef

ListChecksResponseTypeDef#

# ListChecksResponseTypeDef definition

class ListChecksResponseTypeDef(TypedDict):
    checkSummaries: List[CheckSummaryTypeDef],  # (1)
    nextToken: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See CheckSummaryTypeDef
  2. See ResponseMetadataTypeDef

ListChecksRequestListChecksPaginateTypeDef#

# ListChecksRequestListChecksPaginateTypeDef definition

class ListChecksRequestListChecksPaginateTypeDef(TypedDict):
    awsService: NotRequired[str],
    language: NotRequired[RecommendationLanguageType],  # (1)
    pillar: NotRequired[RecommendationPillarType],  # (2)
    source: NotRequired[RecommendationSourceType],  # (3)
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (4)
  1. See RecommendationLanguageType
  2. See RecommendationPillarType
  3. See RecommendationSourceType
  4. See PaginatorConfigTypeDef

ListOrganizationRecommendationAccountsRequestListOrganizationRecommendationAccountsPaginateTypeDef#

# ListOrganizationRecommendationAccountsRequestListOrganizationRecommendationAccountsPaginateTypeDef definition

class ListOrganizationRecommendationAccountsRequestListOrganizationRecommendationAccountsPaginateTypeDef(TypedDict):
    organizationRecommendationIdentifier: str,
    affectedAccountId: NotRequired[str],
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (1)
  1. See PaginatorConfigTypeDef

ListOrganizationRecommendationResourcesRequestListOrganizationRecommendationResourcesPaginateTypeDef#

# ListOrganizationRecommendationResourcesRequestListOrganizationRecommendationResourcesPaginateTypeDef definition

class ListOrganizationRecommendationResourcesRequestListOrganizationRecommendationResourcesPaginateTypeDef(TypedDict):
    organizationRecommendationIdentifier: str,
    affectedAccountId: NotRequired[str],
    exclusionStatus: NotRequired[ExclusionStatusType],  # (1)
    regionCode: NotRequired[str],
    status: NotRequired[ResourceStatusType],  # (2)
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (3)
  1. See ExclusionStatusType
  2. See ResourceStatusType
  3. See PaginatorConfigTypeDef

ListRecommendationResourcesRequestListRecommendationResourcesPaginateTypeDef#

# ListRecommendationResourcesRequestListRecommendationResourcesPaginateTypeDef definition

class ListRecommendationResourcesRequestListRecommendationResourcesPaginateTypeDef(TypedDict):
    recommendationIdentifier: str,
    exclusionStatus: NotRequired[ExclusionStatusType],  # (1)
    regionCode: NotRequired[str],
    status: NotRequired[ResourceStatusType],  # (2)
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (3)
  1. See ExclusionStatusType
  2. See ResourceStatusType
  3. See PaginatorConfigTypeDef

ListOrganizationRecommendationResourcesResponseTypeDef#

# ListOrganizationRecommendationResourcesResponseTypeDef definition

class ListOrganizationRecommendationResourcesResponseTypeDef(TypedDict):
    nextToken: str,
    organizationRecommendationResourceSummaries: List[OrganizationRecommendationResourceSummaryTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See OrganizationRecommendationResourceSummaryTypeDef
  2. See ResponseMetadataTypeDef

ListOrganizationRecommendationsRequestListOrganizationRecommendationsPaginateTypeDef#

# ListOrganizationRecommendationsRequestListOrganizationRecommendationsPaginateTypeDef definition

class ListOrganizationRecommendationsRequestListOrganizationRecommendationsPaginateTypeDef(TypedDict):
    afterLastUpdatedAt: NotRequired[Union[datetime, str]],
    awsService: NotRequired[str],
    beforeLastUpdatedAt: NotRequired[Union[datetime, str]],
    checkIdentifier: NotRequired[str],
    pillar: NotRequired[RecommendationPillarType],  # (1)
    source: NotRequired[RecommendationSourceType],  # (2)
    status: NotRequired[RecommendationStatusType],  # (3)
    type: NotRequired[RecommendationTypeType],  # (4)
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (5)
  1. See RecommendationPillarType
  2. See RecommendationSourceType
  3. See RecommendationStatusType
  4. See RecommendationTypeType
  5. See PaginatorConfigTypeDef

ListOrganizationRecommendationsRequestRequestTypeDef#

# ListOrganizationRecommendationsRequestRequestTypeDef definition

class ListOrganizationRecommendationsRequestRequestTypeDef(TypedDict):
    afterLastUpdatedAt: NotRequired[Union[datetime, str]],
    awsService: NotRequired[str],
    beforeLastUpdatedAt: NotRequired[Union[datetime, str]],
    checkIdentifier: NotRequired[str],
    maxResults: NotRequired[int],
    nextToken: NotRequired[str],
    pillar: NotRequired[RecommendationPillarType],  # (1)
    source: NotRequired[RecommendationSourceType],  # (2)
    status: NotRequired[RecommendationStatusType],  # (3)
    type: NotRequired[RecommendationTypeType],  # (4)
  1. See RecommendationPillarType
  2. See RecommendationSourceType
  3. See RecommendationStatusType
  4. See RecommendationTypeType

ListRecommendationsRequestListRecommendationsPaginateTypeDef#

# ListRecommendationsRequestListRecommendationsPaginateTypeDef definition

class ListRecommendationsRequestListRecommendationsPaginateTypeDef(TypedDict):
    afterLastUpdatedAt: NotRequired[Union[datetime, str]],
    awsService: NotRequired[str],
    beforeLastUpdatedAt: NotRequired[Union[datetime, str]],
    checkIdentifier: NotRequired[str],
    pillar: NotRequired[RecommendationPillarType],  # (1)
    source: NotRequired[RecommendationSourceType],  # (2)
    status: NotRequired[RecommendationStatusType],  # (3)
    type: NotRequired[RecommendationTypeType],  # (4)
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (5)
  1. See RecommendationPillarType
  2. See RecommendationSourceType
  3. See RecommendationStatusType
  4. See RecommendationTypeType
  5. See PaginatorConfigTypeDef

ListRecommendationsRequestRequestTypeDef#

# ListRecommendationsRequestRequestTypeDef definition

class ListRecommendationsRequestRequestTypeDef(TypedDict):
    afterLastUpdatedAt: NotRequired[Union[datetime, str]],
    awsService: NotRequired[str],
    beforeLastUpdatedAt: NotRequired[Union[datetime, str]],
    checkIdentifier: NotRequired[str],
    maxResults: NotRequired[int],
    nextToken: NotRequired[str],
    pillar: NotRequired[RecommendationPillarType],  # (1)
    source: NotRequired[RecommendationSourceType],  # (2)
    status: NotRequired[RecommendationStatusType],  # (3)
    type: NotRequired[RecommendationTypeType],  # (4)
  1. See RecommendationPillarType
  2. See RecommendationSourceType
  3. See RecommendationStatusType
  4. See RecommendationTypeType

ListRecommendationResourcesResponseTypeDef#

# ListRecommendationResourcesResponseTypeDef definition

class ListRecommendationResourcesResponseTypeDef(TypedDict):
    nextToken: str,
    recommendationResourceSummaries: List[RecommendationResourceSummaryTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See RecommendationResourceSummaryTypeDef
  2. See ResponseMetadataTypeDef

RecommendationPillarSpecificAggregatesTypeDef#

# RecommendationPillarSpecificAggregatesTypeDef definition

class RecommendationPillarSpecificAggregatesTypeDef(TypedDict):
    costOptimizing: NotRequired[RecommendationCostOptimizingAggregatesTypeDef],  # (1)
  1. See RecommendationCostOptimizingAggregatesTypeDef

OrganizationRecommendationSummaryTypeDef#

# OrganizationRecommendationSummaryTypeDef definition

class OrganizationRecommendationSummaryTypeDef(TypedDict):
    arn: str,
    id: str,
    name: str,
    pillars: List[RecommendationPillarType],  # (3)
    resourcesAggregates: RecommendationResourcesAggregatesTypeDef,  # (4)
    source: RecommendationSourceType,  # (5)
    status: RecommendationStatusType,  # (6)
    type: RecommendationTypeType,  # (7)
    awsServices: NotRequired[List[str]],
    checkArn: NotRequired[str],
    createdAt: NotRequired[datetime],
    lastUpdatedAt: NotRequired[datetime],
    lifecycleStage: NotRequired[RecommendationLifecycleStageType],  # (1)
    pillarSpecificAggregates: NotRequired[RecommendationPillarSpecificAggregatesTypeDef],  # (2)
  1. See RecommendationLifecycleStageType
  2. See RecommendationPillarSpecificAggregatesTypeDef
  3. See RecommendationPillarType
  4. See RecommendationResourcesAggregatesTypeDef
  5. See RecommendationSourceType
  6. See RecommendationStatusType
  7. See RecommendationTypeType

OrganizationRecommendationTypeDef#

# OrganizationRecommendationTypeDef definition

class OrganizationRecommendationTypeDef(TypedDict):
    arn: str,
    description: str,
    id: str,
    name: str,
    pillars: List[RecommendationPillarType],  # (3)
    resourcesAggregates: RecommendationResourcesAggregatesTypeDef,  # (4)
    source: RecommendationSourceType,  # (5)
    status: RecommendationStatusType,  # (6)
    type: RecommendationTypeType,  # (7)
    awsServices: NotRequired[List[str]],
    checkArn: NotRequired[str],
    createdAt: NotRequired[datetime],
    createdBy: NotRequired[str],
    lastUpdatedAt: NotRequired[datetime],
    lifecycleStage: NotRequired[RecommendationLifecycleStageType],  # (1)
    pillarSpecificAggregates: NotRequired[RecommendationPillarSpecificAggregatesTypeDef],  # (2)
    resolvedAt: NotRequired[datetime],
    updateReason: NotRequired[str],
    updateReasonCode: NotRequired[UpdateRecommendationLifecycleStageReasonCodeType],  # (8)
    updatedOnBehalfOf: NotRequired[str],
    updatedOnBehalfOfJobTitle: NotRequired[str],
  1. See RecommendationLifecycleStageType
  2. See RecommendationPillarSpecificAggregatesTypeDef
  3. See RecommendationPillarType
  4. See RecommendationResourcesAggregatesTypeDef
  5. See RecommendationSourceType
  6. See RecommendationStatusType
  7. See RecommendationTypeType
  8. See UpdateRecommendationLifecycleStageReasonCodeType

RecommendationSummaryTypeDef#

# RecommendationSummaryTypeDef definition

class RecommendationSummaryTypeDef(TypedDict):
    arn: str,
    id: str,
    name: str,
    pillars: List[RecommendationPillarType],  # (3)
    resourcesAggregates: RecommendationResourcesAggregatesTypeDef,  # (4)
    source: RecommendationSourceType,  # (5)
    status: RecommendationStatusType,  # (6)
    type: RecommendationTypeType,  # (7)
    awsServices: NotRequired[List[str]],
    checkArn: NotRequired[str],
    createdAt: NotRequired[datetime],
    lastUpdatedAt: NotRequired[datetime],
    lifecycleStage: NotRequired[RecommendationLifecycleStageType],  # (1)
    pillarSpecificAggregates: NotRequired[RecommendationPillarSpecificAggregatesTypeDef],  # (2)
  1. See RecommendationLifecycleStageType
  2. See RecommendationPillarSpecificAggregatesTypeDef
  3. See