create_permission_set
¶
create_permission_set(
environment_arn: EnvironmentArn,
name: PermissionSetName,
permissions: PermissionsList,
*,
config_overrides: Optional[AssuranceClientConfig] = None,
description: Optional[PermissionSetDescription] = None,
) -> CreatePermissionSetOutput
Creates a new permission set in the environment. Returns the identifier the service assigned to it; retrieve its attributes with GetPermissionSet.
Parameters:
-
environment_arn(EnvironmentArn) –The ARN of this governance environment.
-
name(PermissionSetName) –The name of the permission set.
-
description(Optional[PermissionSetDescription], default:None) –A description of the permission set.
-
permissions(PermissionsList) –The permissions granted by the permission set.
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 permission set Creates a permission set for the payments compliance team running a PCI-DSS assessment.
>>> client.create_permission_set(environment_arn='arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111', name='Payments Auditor', description='Access for the payments compliance team to review the PCI-DSS assessment and manage its projects.', permissions=['view_assessments', 'manage_projects'])
Source code in docs_src/capo_assurance/_services/assurance.py
1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 | |