get_evidence_content
¶
get_evidence_content(
environment_arn: EnvironmentArn,
evidence_id: str,
project: ProjectName,
*,
config_overrides: Optional[AssuranceClientConfig] = 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.
>>> 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/assurance.py
3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 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 | |