create_data_source
Create a data source in Amazon DataZone and link it to a project for data ingestion, scheduling, and asset publishing.
Instructions
Creates a data source in Amazon DataZone and associates it with a project.
Args: domain_identifier (str): The ID of the domain where the data source is created project_identifier (str): The ID of the project to associate the data source with name (str): The name of the data source (1-256 characters) data_src_type (str): The type of data source (e.g., "S3", "GLUE", "REDSHIFT") description (str, optional): Description of the data source (0-2048 characters) enable_setting (str, optional): Whether the data source is enabled (ENABLED/DISABLED) environment_identifier (str, optional): ID of the environment to publish assets to connection_identifier (str, optional): ID of the connection to use configuration (Dict[str, Any], optional): Data source configuration Example for S3: { "s3Configuration": { "bucketName": "my-bucket", "prefix": "data/" } } asset_forms_input (List[Dict[str, str]], optional): Metadata forms for assets Example: [{ "content": "form-content", "formName": "form-name", "typeIdentifier": "type-id", "typeRevision": "type-rev" }] publish_on_import (bool, optional): Whether to automatically publish imported assets recommendation (Dict[str, bool], optional): Recommendation settings Example: {"enableBusinessNameGeneration": True} schedule (Dict[str, str], optional): Schedule configuration Example: { "schedule": "cron(0 12 * * ? *)", "timezone": "UTC" } client_token (str, optional): Token for idempotency
Returns: Any: The API response containing: - Data source ID and status - Creation and update timestamps - Domain and project IDs - Configuration details - Last run information - Error messages (if any)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| schedule | No | ||
| description | No | ||
| client_token | No | ||
| configuration | No | ||
| data_src_type | Yes | ||
| enable_setting | No | ENABLED | |
| recommendation | No | ||
| asset_forms_input | No | ||
| domain_identifier | Yes | ||
| publish_on_import | No | ||
| project_identifier | Yes | ||
| connection_identifier | No | ||
| environment_identifier | No |