delete_evidence
async
¶
delete_evidence(
environment_arn: EnvironmentArn,
evidence_id: str,
project: ProjectName,
*,
config_overrides: Optional[AsyncAssuranceClientConfig] = None,
) -> DeleteEvidenceOutput
Removes an evidence item.
Parameters:
-
environment_arn(EnvironmentArn) –The ARN of this governance environment.
-
evidence_id(str) –The unique identifier of the evidence item.
-
project(ProjectName) –The name of the project.
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:
Delete an evidence item Removes the user access review evidence from the payments-prod project.
>>> await client.delete_evidence(environment_arn='arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111', evidence_id='assurance://PCI-DSS-user-access-review.pdf', project='payments-prod')
Source code in docs_src/capo_assurance/_services/async_assurance.py
1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 | |