start_agent_recommendation_generation
async
¶
start_agent_recommendation_generation(
profile_arn: AgentProfileArn,
types: RecommendationTypes,
*,
config_overrides: Optional[AsyncWellArchitectedClientConfig] = None,
name: Optional[str] = None,
additional_context: Optional[SensitiveDocument] = None,
scope: Optional[Scope] = None,
) -> StartAgentRecommendationGenerationResponse
Starts a recommendation generation process for the specified agent profile. This asynchronous operation returns immediately. Use GetAgentRecommendationGeneration to check the status of the generation.
Currently, only the ARCHITECTURE recommendation type is supported. RESOURCE and APPLICATION recommendations are generated only by the scheduled generation cycle and cannot be started with this operation.
For the ARCHITECTURE type, the generation analyzes the infrastructure as code (IaC) template that you specify in additionalContext, and returns updated templates with best practice fixes applied. You must specify scope and additionalContext. You can optionally specify name.
Architecture review generations are subject to a daily quota for each profile. For more information, see Quotas and limits in the Amazon Web Services Well-Architected User Guide.
Parameters:
-
profile_arn(AgentProfileArn) –The Amazon Resource Name (ARN) of the optimization profile to use for generating recommendations.
-
types(RecommendationTypes) –The types of recommendations to generate. You can specify up to two types in a single request. Currently, only
ARCHITECTUREis supported for this operation. -
name(Optional[str], default:None) –An optional name for this generation that identifies the architecture review in the console and in
ListAgentRecommendationGenerationsresults. Applies toARCHITECTUREtype only. Must be absent for other types. -
additional_context(Optional[SensitiveDocument], default:None) –The location of the infrastructure as code (IaC) template to review, and the lenses to review it against. Required for the
ARCHITECTUREtype. Must be absent for other types. Specify a JSON object with the following members:-
s3Uri: The Amazon S3 URI of the IaC template, .zip archive, or folder to review. -
s3VersionId: The version ID of the Amazon S3 object. If you omit this member, the current version is used. -
lensArns: The ARNs of the lenses to review against. Onlyarn:aws:wellarchitected::aws:lens/wellarchitectedis supported.
-
-
scope(Optional[Scope], default:None) –Defines which pillars, goals, and items the review covers. Required for the
ARCHITECTUREtype. Must be absent for other types.
Raises:
-
AccessDeniedException–User does not have sufficient access to perform this action.
-
ConflictException–The resource has already been processed, was deleted, or is too large.
-
InternalServerException–There is a problem with the Well-Architected Tool API service.
-
ServiceQuotaExceededException–The user has reached their resource quota.
-
ThrottlingException–Request was denied due to request throttling.
-
ValidationException–The user input is not valid.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_wellarchitected/_services/async_well_architected.py
6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 | |