DataZone / Client / create_project
create_projectΒΆ
- DataZone.Client.create_project(**kwargs)ΒΆ
Creates an Amazon DataZone project.
See also: AWS API Documentation
Request Syntax
response = client.create_project( domainIdentifier='string', name='string', description='string', resourceTags={ 'string': 'string' }, glossaryTerms=[ 'string', ], domainUnitId='string', projectProfileId='string', userParameters=[ { 'environmentId': 'string', 'environmentResolvedAccount': { 'awsAccountId': 'string', 'regionName': 'string', 'sourceAccountPoolId': 'string' }, 'environmentConfigurationName': 'string', 'environmentParameters': [ { 'name': 'string', 'value': 'string' }, ] }, ], projectCategory='string', projectExecutionRole='string', membershipAssignments=[ { 'member': { 'userIdentifier': 'string', 'groupIdentifier': 'string' }, 'designation': 'PROJECT_OWNER'|'PROJECT_CONTRIBUTOR'|'PROJECT_CATALOG_VIEWER'|'PROJECT_CATALOG_CONSUMER'|'PROJECT_CATALOG_STEWARD' }, ] )
- Parameters:
domainIdentifier (string) β
[REQUIRED]
The ID of the Amazon DataZone domain in which this project is created.
name (string) β
[REQUIRED]
The name of the Amazon DataZone project.
description (string) β The description of the Amazon DataZone project.
resourceTags (dict) β
The resource tags of the project.
(string) β
(string) β
glossaryTerms (list) β
The glossary terms that can be used in this Amazon DataZone project.
(string) β
domainUnitId (string) β The ID of the domain unit. This parameter is not required and if it is not specified, then the project is created at the root domain unit level.
projectProfileId (string) β The ID of the project profile.
userParameters (list) β
The user parameters of the project.
(dict) β
The environment configuration user parameters.
environmentId (string) β
The ID of the environment.
environmentResolvedAccount (dict) β
Specifies the account/Region that is to be used during project creation for a particular blueprint.
awsAccountId (string) β [REQUIRED]
The ID of the resolved account.
regionName (string) β [REQUIRED]
The name of the resolved Region.
sourceAccountPoolId (string) β
The ID of the account pool.
environmentConfigurationName (string) β
The environment configuration name.
environmentParameters (list) β
The environment parameters.
(dict) β
The parameter details of an evironment profile.
name (string) β
The name of an environment profile parameter.
value (string) β
The value of an environment profile parameter.
projectCategory (string) β The category of the project. Set to βADMINβ designates this as an administrative project for the Amazon DataZone domain.
projectExecutionRole (string) β The default project IAM role that is used to access project resources and run computes such as Glue and Sagemaker.
membershipAssignments (list) β
The members to be assigned to the project.
(dict) β
A map of user or group profiles to designations that need to be assigned in the project.
member (dict) β [REQUIRED]
The details about a project member.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set:
userIdentifier,groupIdentifier.userIdentifier (string) β
The user ID of a project member.
groupIdentifier (string) β
The ID of the group of a project member.
designation (string) β [REQUIRED]
The designation of the project membership.
- Return type:
dict
- Returns:
Response Syntax
{ 'domainId': 'string', 'id': 'string', 'name': 'string', 'description': 'string', 'projectStatus': 'ACTIVE'|'DELETING'|'DELETE_FAILED'|'UPDATING'|'UPDATE_FAILED'|'MOVING', 'failureReasons': [ { 'code': 'string', 'message': 'string' }, ], 'createdBy': 'string', 'createdAt': datetime(2015, 1, 1), 'lastUpdatedAt': datetime(2015, 1, 1), 'resourceTags': [ { 'key': 'string', 'value': 'string', 'source': 'PROJECT'|'PROJECT_PROFILE' }, ], 'glossaryTerms': [ 'string', ], 'domainUnitId': 'string', 'projectProfileId': 'string', 'userParameters': [ { 'environmentId': 'string', 'environmentResolvedAccount': { 'awsAccountId': 'string', 'regionName': 'string', 'sourceAccountPoolId': 'string' }, 'environmentConfigurationName': 'string', 'environmentParameters': [ { 'name': 'string', 'value': 'string' }, ] }, ], 'environmentDeploymentDetails': { 'overallDeploymentStatus': 'PENDING_DEPLOYMENT'|'IN_PROGRESS'|'SUCCESSFUL'|'FAILED_VALIDATION'|'FAILED_DEPLOYMENT', 'environmentFailureReasons': { 'string': [ { 'code': 'string', 'message': 'string' }, ] } }, 'projectCategory': 'string' }
Response Structure
(dict) β
domainId (string) β
The identifier of the Amazon DataZone domain in which the project was created.
id (string) β
The ID of the Amazon DataZone project.
name (string) β
The name of the project.
description (string) β
The description of the project.
projectStatus (string) β
The status of the Amazon DataZone project that was created.
failureReasons (list) β
Specifies the error message that is returned if the operation cannot be successfully completed.
(dict) β
Specifies the error message that is returned if the operation cannot be successfully completed.
code (string) β
The code of the project deletion error.
message (string) β
The message of the project deletion error.
createdBy (string) β
The Amazon DataZone user who created the project.
createdAt (datetime) β
The timestamp of when the project was created.
lastUpdatedAt (datetime) β
The timestamp of when the project was last updated.
resourceTags (list) β
The resource tags of the project.
(dict) β
The resource tag of the project.
key (string) β
The key of the resource tag of the project.
value (string) β
The value of the resource tag of the project.
source (string) β
The source of the resource tag of the project.
glossaryTerms (list) β
The glossary terms that can be used in the project.
(string) β
domainUnitId (string) β
The ID of the domain unit.
projectProfileId (string) β
The project profile ID.
userParameters (list) β
The user parameters of the project.
(dict) β
The environment configuration user parameters.
environmentId (string) β
The ID of the environment.
environmentResolvedAccount (dict) β
Specifies the account/Region that is to be used during project creation for a particular blueprint.
awsAccountId (string) β
The ID of the resolved account.
regionName (string) β
The name of the resolved Region.
sourceAccountPoolId (string) β
The ID of the account pool.
environmentConfigurationName (string) β
The environment configuration name.
environmentParameters (list) β
The environment parameters.
(dict) β
The parameter details of an evironment profile.
name (string) β
The name of an environment profile parameter.
value (string) β
The value of an environment profile parameter.
environmentDeploymentDetails (dict) β
The environment deployment details.
overallDeploymentStatus (string) β
The overall deployment status of the environment.
environmentFailureReasons (dict) β
Environment failure reasons.
(string) β
(list) β
(dict) β
The failure reasons for the environment deployment.
code (string) β
The error code for the failure reason for the environment deployment.
message (string) β
The error message for the failure reason for the environment deployment.
projectCategory (string) β
The category of the project.
Exceptions
DataZone.Client.exceptions.InternalServerExceptionDataZone.Client.exceptions.ResourceNotFoundExceptionDataZone.Client.exceptions.AccessDeniedExceptionDataZone.Client.exceptions.ThrottlingExceptionDataZone.Client.exceptions.ServiceQuotaExceededExceptionDataZone.Client.exceptions.ConflictExceptionDataZone.Client.exceptions.ValidationExceptionDataZone.Client.exceptions.UnauthorizedException