create_project
async
¶
create_project(
environment_arn: EnvironmentArn,
project: ProjectName,
*,
config_overrides: Optional[AsyncAssuranceClientConfig] = 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.
>>> await 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/async_assurance.py
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 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 | |