enable_framework
¶
enable_framework(
environment_arn: EnvironmentArn,
framework: FrameworkName,
project: ProjectName,
*,
config_overrides: Optional[AssuranceClientConfig] = None,
framework_version: Optional[FrameworkVersion] = None,
assessment_mode: Optional[AssessmentMode] = None,
) -> EnableFrameworkOutput
Enables a compliance framework for a project in a governance environment. AWS Assurance then assesses the project's resources against the framework's controls.
Parameters:
-
environment_arn(EnvironmentArn) –The ARN of this governance environment.
-
framework(FrameworkName) –The name of the compliance framework.
-
project(ProjectName) –The name of the project.
-
framework_version(Optional[FrameworkVersion], default:None) –The version of the compliance framework.
-
assessment_mode(Optional[AssessmentMode], default:None) –The way that assessments run for the framework. The default is
SCHEDULED.-
CONTINUOUS– Runs assessments when a relevant change occurs. -
SCHEDULED– Runs assessments on a recurring schedule.
-
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.
-
ConflictException–A conflict occurred (for example, resource already exists).
-
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:
Enable a framework for a project Enables the PCI-DSS framework for the payments-prod project so its controls are assessed in the governance environment.
>>> client.enable_framework(environment_arn='arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111', framework='AWS:PCI-DSS', project='payments-prod', framework_version='4')
Source code in docs_src/capo_assurance/_services/assurance.py
2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 | |