get_evidence_content
async
¶
get_evidence_content(
environment_arn: EnvironmentArn,
evidence_id: str,
project: ProjectName,
*,
config_overrides: Optional[AsyncAssuranceClientConfig] = None,
evidence_version: Optional[int] = None,
) -> GetEvidenceContentOutput
Returns the content of an evidence item.
Parameters:
-
environment_arn(EnvironmentArn) –The Amazon Resource Name (ARN) of this governance environment.
-
evidence_id(str) –The unique identifier of the evidence item.
-
evidence_version(Optional[int], default:None) –The version of the evidence to get. To get the latest version, omit this parameter.
-
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.
-
IntegrityException–The evidence item failed integrity verification. The evidence content might have been modified or the version might no longer be available. Verify the evidence item and try your request again.
-
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:
Get evidence content Gets the file content of the user access review evidence for offline review.
>>> await client.get_evidence_content(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
3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 | |