create_project
¶
create_project(
environment_arn: EnvironmentArn,
project: ProjectName,
*,
config_overrides: Optional[AssuranceClientConfig] = None,
resource_filters: Optional[ResourceFiltersList] = None,
) -> CreateProjectOutput
Creates a new project with a list of resources in a governance environment.
Parameters:
-
environment_arn(EnvironmentArn) –The ARN of this governance environment.
-
project(ProjectName) –The name of the project.
-
resource_filters(Optional[ResourceFiltersList], default:None) –The filters that determine which resources are in scope.
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 project Creates the payments-prod project scoped to the account's payment-processing resources so a PCI-DSS assessment can track them.
>>> client.create_project(environment_arn='arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111', project='payments-prod', resource_filters=['tag:app=payments-prod', 'region:us-east-1 resourcetype:rds:db'])
Source code in docs_src/capo_assurance/_services/assurance.py
1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 | |