create_framework
¶
create_framework(
environment_arn: EnvironmentArn,
framework: FrameworkName,
framework_version: FrameworkVersion,
*,
config_overrides: Optional[AssuranceClientConfig] = None,
title: Optional[FrameworkTitle] = None,
description: Optional[FrameworkDescription] = None,
) -> CreateFrameworkOutput
Creates a custom framework. The framework name must not start with AWS:. New frameworks are created in PENDING status. Use PublishFramework to make them ACTIVE.
Parameters:
-
environment_arn(EnvironmentArn) –The ARN of this governance environment.
-
framework(FrameworkName) –The name of the framework. The name must not start with
AWS:. -
framework_version(FrameworkVersion) –The version that you assign to the framework.
-
title(Optional[FrameworkTitle], default:None) –The human-readable title of the framework.
-
description(Optional[FrameworkDescription], default:None) –A description of the framework.
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:
Create a custom framework Creates a custom PCI-DSS framework in a governance environment for the payments team assessment.
>>> client.create_framework(environment_arn='arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111', framework='payments-pci-dss', framework_version='1.0', title='Payments PCI-DSS v4 Framework', description='Custom control framework for the payments team PCI-DSS v4 assessment.')
Source code in docs_src/capo_assurance/_services/assurance.py
1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 | |