update_project
async
¶
update_project(
environment_arn: EnvironmentArn,
project: ProjectName,
*,
config_overrides: Optional[AsyncAssuranceClientConfig] = 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.
>>> await 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/async_assurance.py
7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841 7842 7843 7844 7845 7846 7847 7848 7849 7850 7851 7852 | |