create_agent_context
¶
create_agent_context(
profile_arn: AgentProfileArn,
title: SensitiveString,
context_type: ContextType,
content: ContextContent,
*,
config_overrides: Optional[WellArchitectedClientConfig] = None,
client_token: Optional[str] = None,
) -> CreateAgentContextResponse
Creates a context associated with an optimization profile. Contexts provide application and environment information used during recommendation generation.
Parameters:
-
client_token(Optional[str], default:None) –A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
-
profile_arn(AgentProfileArn) –The Amazon Resource Name (ARN) of the profile to associate the context with.
-
title(SensitiveString) –The title of the context.
-
context_type(ContextType) –The type of the context.
-
content(ContextContent) –The typed content of the context. The structure contains application-specific fields such as account IDs, Regions, services, and resource 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.
-
ResourceNotFoundException–The requested resource was not found.
-
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/well_architected.py
526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 | |