Skip to main content

codegen_jobs

Creates, updates, deletes, gets or lists a codegen_jobs resource.

Overview

Namecodegen_jobs
TypeResource
Idaws.amplifyuibuilder.codegen_jobs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe unique ID for the code generation job.
app_idstringThe ID of the Amplify app associated with the code generation job. (pattern: <code>d[a-z0-9]+</code>)
assetobjectThe CodegenJobAsset to use for the code generation job.
auto_generate_formsbooleanSpecifies whether to autogenerate forms in the code generation job.
created_atstring (date-time)The time that the code generation job was created.
dependenciesarrayLists the dependency packages that may be required for the project code to run.
environment_namestringThe name of the backend environment associated with the code generation job.
featuresobjectDescribes the feature flags that you can specify for a code generation job.
generic_data_schemaobjectDescribes the data schema for a code generation job.
modified_atstring (date-time)The time that the code generation job was modified.
render_configobjectDescribes the configuration information for rendering the UI component associated with the code generation job.
statusstringThe status of the code generation job. (in_progress, failed, succeeded)
status_messagestringThe customized status message for the code generation job.
tagsobjectOne or more key-value pairs to use when tagging the code generation job.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_codegen_jobselectapp_id, environment_name, id, regionReturns an existing code generation job.
list_codegen_jobsselectapp_id, environment_name, regionnextToken, maxResultsRetrieves a list of code generation jobs for a specified Amplify app and backend environment.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
app_idstringThe unique ID for the Amplify app.
environment_namestringThe name of the backend environment that is a part of the Amplify app.
idstringThe unique ID of the code generation job.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of jobs to retrieve.
nextTokenstringThe token to request the next page of results.

SELECT examples

Returns an existing code generation job.

SELECT
id,
app_id,
asset,
auto_generate_forms,
created_at,
dependencies,
environment_name,
features,
generic_data_schema,
modified_at,
render_config,
status,
status_message,
tags
FROM aws.amplifyuibuilder.codegen_jobs
WHERE app_id = '{{ app_id }}' -- required
AND environment_name = '{{ environment_name }}' -- required
AND id = '{{ id }}' -- required
AND region = '{{ region }}' -- required
;