enable_framework
async
¶
enable_framework(
environment_arn: EnvironmentArn,
framework: FrameworkName,
project: ProjectName,
*,
config_overrides: Optional[AsyncAssuranceClientConfig] = 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.
>>> await 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/async_assurance.py
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 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 | |