update_project
¶
update_project(
environment_arn: EnvironmentArn,
project: ProjectName,
*,
config_overrides: Optional[AssuranceClientConfig] = None,
resource_filters: Optional[ResourceFiltersList] = None,
) -> UpdateProjectOutput
Updates an existing project. Omit any field to leave it unchanged.
Parameters:
-
environment_arn(EnvironmentArn) –The ARN of this governance environment.
-
project(ProjectName) –The name of the project.
-
resource_filters(Optional[ResourceFiltersList], default:None) –The filters that determine which resources are in scope.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action. This error occurs when the request is unauthenticated, or is authenticated but lacks permission to invoke the operation.
-
InternalServerException–An internal server error occurred.
-
ResourceNotFoundException–The requested resource was not found.
-
ThrottlingException–The request was throttled.
-
ValidationException–The request failed validation.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Update a project Broadens the payments-prod project's scope to also include the account's S3 buckets during the PCI-DSS assessment.
>>> client.update_project(environment_arn='arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111', project='payments-prod', resource_filters=['tag:app=payments-prod', 'region:us-east-1 resourcetype:rds:db', 'region:us-east-1 resourcetype:s3:bucket'])
Source code in docs_src/capo_assurance/_services/assurance.py
7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745 7746 7747 7748 7749 7750 7751 7752 7753 7754 | |