get_evidence
¶
get_evidence(
environment_arn: EnvironmentArn,
evidence_id: str,
project: ProjectName,
*,
config_overrides: Optional[AssuranceClientConfig] = None,
evidence_version: Optional[int] = None,
) -> GetEvidenceOutput
Retrieves metadata for an evidence item.
Parameters:
-
environment_arn(EnvironmentArn) –The ARN of this governance environment.
-
evidence_id(str) –The unique identifier of the evidence item.
-
evidence_version(Optional[int], default:None) –Specifies the version. Omit to get the latest version.
-
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:
Get evidence metadata Retrieves metadata for the user access review evidence in the payments-prod project.
>>> client.get_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/assurance.py
3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 | |