ml_input_channels
Creates, updates, deletes, gets or lists a ml_input_channels resource.
Overview
| Name | ml_input_channels |
| Type | Resource |
| Id | aws.cleanroomsml.ml_input_channels |
Fields
The following fields are returned by SELECT queries:
- get_ml_input_channel
- list_ml_input_channels
| Name | Datatype | Description |
|---|---|---|
name | string | The name of the ML input channel. (pattern: <code>(?!\s*$)[\u0020-\uD7FF\uE000-\uFFFD\uD800\uDBFF-\uDC00\uDFFF\t]*</code>) |
collaboration_identifier | string | The collaboration ID of the collaboration that contains the ML input channel. (pattern: <code>[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}</code>) |
configured_model_algorithm_associations | array | The configured model algorithm associations that were used to create the ML input channel. |
create_time | string (date-time) | The time at which the ML input channel was created. |
description | string | The description of the ML input channel. (pattern: <code>[\u0020-\uD7FF\uE000-\uFFFD\uD800\uDBFF-\uDC00\uDFFF\t\r\n]*</code>) |
input_channel | object | Provides information about the data source that is used to create an ML input channel. |
kms_key_arn | string | The Amazon Resource Name (ARN) of the KMS key that was used to create the ML input channel. (pattern: <code>arn:aws[-a-z]*:kms:[-a-z0-9]+:[0-9]{12}:key/.+</code>) |
membership_identifier | string | The membership ID of the membership that contains the ML input channel. (pattern: <code>[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}</code>) |
ml_input_channel_arn | string | The Amazon Resource Name (ARN) of the ML input channel. (pattern: <code>arn:aws[-a-z]*:cleanrooms-ml:[-a-z0-9]+:[0-9]{12}:membership/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/ml-input-channel/[-a-zA-Z0-9_/.]+</code>) |
number_of_files | number (double) | The number of files in the ML input channel. |
number_of_records | integer (int64) | The number of records in the ML input channel. |
payer_configuration | object | Specifies which member accounts are responsible for paying for compute and synthetic data generation costs in a Clean Rooms ML collaboration. |
privacy_budgets | object | Returns the privacy budgets that control access to this Clean Rooms ML input channel. Use these budgets to monitor and limit resource consumption over specified time periods. |
protected_query_identifier | string | The ID of the protected query that was used to create the ML input channel. (pattern: <code>[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}</code>) |
retention_in_days | integer | The number of days to keep the data in the ML input channel. |
size_in_gb | number (double) | The size, in GB, of the ML input channel. |
status | string | The status of the ML input channel. (CREATE_PENDING, CREATE_IN_PROGRESS, CREATE_FAILED, ACTIVE, DELETE_PENDING, DELETE_IN_PROGRESS, DELETE_FAILED, INACTIVE) |
status_details | object | Details about the status of a resource. |
synthetic_data_configuration | object | The synthetic data configuration for this ML input channel, including parameters for generating privacy-preserving synthetic data and evaluation scores for measuring the privacy of the generated data. |
tags | object | The optional metadata that you applied to the resource to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define. The following basic restrictions apply to tags: Maximum number of tags per resource - 50. For each resource, each tag key must be unique, and each tag key can have only one value. Maximum key length - 128 Unicode characters in UTF-8. Maximum value length - 256 Unicode characters in UTF-8. If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @. Tag keys and values are case sensitive. Do not use aws:, AWS:, or any upper or lowercase combination of such as a prefix for keys as it is reserved for AWS use. You cannot edit or delete tag keys with this prefix. Values can have this prefix. If a tag value has aws as its prefix but the key does not, then Clean Rooms ML considers it to be a user tag and will count against the limit of 50 tags. Tags with only the key prefix of aws do not count against your tags per resource limit. |
update_time | string (date-time) | The most recent time at which the ML input channel was updated. |
| Name | Datatype | Description |
|---|---|---|
name | string | The name of the ML input channel. (pattern: <code>(?!\s*$)[\u0020-\uD7FF\uE000-\uFFFD\uD800\uDBFF-\uDC00\uDFFF\t]*</code>) |
collaboration_identifier | string | The collaboration ID of the collaboration that contains the ML input channel. (pattern: <code>[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}</code>) |
configured_model_algorithm_associations | array | The associated configured model algorithms used to create the ML input channel. |
create_time | string (date-time) | The time at which the ML input channel was created. |
description | string | The description of the ML input channel. (pattern: <code>[\u0020-\uD7FF\uE000-\uFFFD\uD800\uDBFF-\uDC00\uDFFF\t\r\n]*</code>) |
membership_identifier | string | The membership ID of the membership that contains the ML input channel. (pattern: <code>[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}</code>) |
ml_input_channel_arn | string | The Amazon Resource Name (ARN) of the ML input channel. (pattern: <code>arn:aws[-a-z]*:cleanrooms-ml:[-a-z0-9]+:[0-9]{12}:membership/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/ml-input-channel/[-a-zA-Z0-9_/.]+</code>) |
payer_configuration | object | Specifies which member accounts are responsible for paying for compute and synthetic data generation costs in a Clean Rooms ML collaboration. |
protected_query_identifier | string | The ID of the protected query that was used to create the ML input channel. (pattern: <code>[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}</code>) |
status | string | The status of the ML input channel. (CREATE_PENDING, CREATE_IN_PROGRESS, CREATE_FAILED, ACTIVE, DELETE_PENDING, DELETE_IN_PROGRESS, DELETE_FAILED, INACTIVE) |
update_time | string (date-time) | The most recent time at which the ML input channel was updated. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_ml_input_channel | select | ml_input_channel_arn, membership_identifier, region | Returns information about an ML input channel. | |
list_ml_input_channels | select | membership_identifier, region | nextToken, maxResults | Returns a list of ML input channels. |
create_ml_input_channel | insert | membership_identifier, region, configuredModelAlgorithmAssociations, inputChannel, name, retentionInDays | Provides the information to create an ML input channel. An ML input channel is the result of a query that can be used for ML modeling. | |
delete_ml_input_channel_data | delete | ml_input_channel_arn, membership_identifier, region | Provides the information necessary to delete an ML input channel. |
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 |
|---|---|---|
membership_identifier | string | The membership ID of the membership that contains the ML input channel you want to delete. |
ml_input_channel_arn | string | The Amazon Resource Name (ARN) of the ML input channel that you want to delete. |
region | string | AWS region (default: us-east-1) |
maxResults | integer | The maximum number of ML input channels to return. |
nextToken | string | The token value retrieved from a previous call to access the next page of results. |
SELECT examples
- get_ml_input_channel
- list_ml_input_channels
Returns information about an ML input channel.
SELECT
name,
collaboration_identifier,
configured_model_algorithm_associations,
create_time,
description,
input_channel,
kms_key_arn,
membership_identifier,
ml_input_channel_arn,
number_of_files,
number_of_records,
payer_configuration,
privacy_budgets,
protected_query_identifier,
retention_in_days,
size_in_gb,
status,
status_details,
synthetic_data_configuration,
tags,
update_time
FROM aws.cleanroomsml.ml_input_channels
WHERE ml_input_channel_arn = '{{ ml_input_channel_arn }}' -- required
AND membership_identifier = '{{ membership_identifier }}' -- required
AND region = '{{ region }}' -- required
;
Returns a list of ML input channels.
SELECT
name,
collaboration_identifier,
configured_model_algorithm_associations,
create_time,
description,
membership_identifier,
ml_input_channel_arn,
payer_configuration,
protected_query_identifier,
status,
update_time
FROM aws.cleanroomsml.ml_input_channels
WHERE membership_identifier = '{{ membership_identifier }}' -- required
AND region = '{{ region }}' -- required
AND nextToken = '{{ nextToken }}'
AND maxResults = '{{ maxResults }}'
;
INSERT examples
- create_ml_input_channel
- Manifest
Provides the information to create an ML input channel. An ML input channel is the result of a query that can be used for ML modeling.
INSERT INTO aws.cleanroomsml.ml_input_channels (
configuredModelAlgorithmAssociations,
inputChannel,
name,
retentionInDays,
description,
kmsKeyArn,
tags,
payerConfiguration,
membership_identifier,
region
)
SELECT
'{{ configuredModelAlgorithmAssociations }}' /* required */,
'{{ inputChannel }}' /* required */,
'{{ name }}' /* required */,
{{ retentionInDays }} /* required */,
'{{ description }}',
'{{ kmsKeyArn }}',
'{{ tags }}',
'{{ payerConfiguration }}',
'{{ membership_identifier }}',
'{{ region }}'
RETURNING
ml_input_channel_arn
;
# Description fields are for documentation purposes
- name: ml_input_channels
props:
- name: membership_identifier
value: "{{ membership_identifier }}"
description: Required parameter for the ml_input_channels resource.
- name: region
value: "{{ region }}"
description: Required parameter for the ml_input_channels resource.
- name: configuredModelAlgorithmAssociations
value:
- "{{ configuredModelAlgorithmAssociations }}"
- name: inputChannel
description: |
Provides information about the data source that is used to create an ML input channel.
value:
dataSource:
protectedQueryInputParameters:
sqlParameters:
queryString: "{{ queryString }}"
analysisTemplateArn: "{{ analysisTemplateArn }}"
parameters: "{{ parameters }}"
computeConfiguration:
worker:
type_: "{{ type_ }}"
number: {{ number }}
properties_: "{{ properties_ }}"
resultFormat: "{{ resultFormat }}"
roleArn: "{{ roleArn }}"
- name: name
value: "{{ name }}"
- name: retentionInDays
value: {{ retentionInDays }}
- name: description
value: "{{ description }}"
- name: kmsKeyArn
value: "{{ kmsKeyArn }}"
- name: tags
value: "{{ tags }}"
- name: payerConfiguration
description: |
Specifies which member accounts are responsible for paying for compute and synthetic data generation costs in a Clean Rooms ML collaboration.
value:
computePayerAccountId: "{{ computePayerAccountId }}"
syntheticDataPayerAccountId: "{{ syntheticDataPayerAccountId }}"
DELETE examples
- delete_ml_input_channel_data
Provides the information necessary to delete an ML input channel.
DELETE FROM aws.cleanroomsml.ml_input_channels
WHERE ml_input_channel_arn = '{{ ml_input_channel_arn }}' --required
AND membership_identifier = '{{ membership_identifier }}' --required
AND region = '{{ region }}' --required
;