code_bindings
Creates, updates, deletes, gets or lists a code_bindings resource.
Overview
| Name | code_bindings |
| Type | Resource |
| Id | aws.schemas.code_bindings |
Fields
The following fields are returned by SELECT queries:
- describe_code_binding
| Name | Datatype | Description |
|---|---|---|
creation_date | string (date-time) | The time and date that the code binding was created. |
last_modified | string (date-time) | The date and time that code bindings were modified. |
schema_version | string | The version number of the schema. |
status | string | The current status of code binding generation. (CREATE_IN_PROGRESS, CREATE_COMPLETE, CREATE_FAILED) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
describe_code_binding | select | language, registry_name, schema_name, region | schemaVersion | Describe the code binding URI. |
put_code_binding | replace | language, registry_name, schema_name, region | schemaVersion | Put code binding URI |
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.
| Name | Datatype | Description |
|---|---|---|
language | string | The language of the code binding. |
region | string | AWS region (default: us-east-1) |
registry_name | string | The name of the registry. |
schema_name | string | The name of the schema. |
schemaVersion | string | Specifying this limits the results to only this schema version. |
SELECT examples
- describe_code_binding
Describe the code binding URI.
SELECT
creation_date,
last_modified,
schema_version,
status
FROM aws.schemas.code_bindings
WHERE language = '{{ language }}' -- required
AND registry_name = '{{ registry_name }}' -- required
AND schema_name = '{{ schema_name }}' -- required
AND region = '{{ region }}' -- required
AND schemaVersion = '{{ schemaVersion }}'
;
REPLACE examples
- put_code_binding
Put code binding URI
REPLACE aws.schemas.code_bindings
SET
-- No updatable properties
WHERE
language = '{{ language }}' --required
AND registry_name = '{{ registry_name }}' --required
AND schema_name = '{{ schema_name }}' --required
AND region = '{{ region }}' --required
AND schemaVersion = '{{ schemaVersion}}'
RETURNING
creation_date,
last_modified,
schema_version,
status;