Skip to content

aws.greengrass.get_resource_definition_version

Example SQL Queries

SELECT * FROM
aws.greengrass.get_resource_definition_version
WHERE
"resource_definition_version_id" = 'VALUE'
AND "resource_definition_id" = 'VALUE';

Description

Retrieves information about a resource definition version, including which resources are included in the version.

Table Definition

Column NameColumn Data Type
resource_definition_id Required Input Column

The ID of the resource definition.

VARCHAR
resource_definition_version_id Required Input Column

The ID of the resource definition version. This value maps to the ''Version'' property of the corresponding ''VersionInformation'' object, which is returned by ''ListResourceDefinitionVersions'' requests. If the version is the last one that was associated with a resource definition, the value also maps to the ''LatestVersion'' property of the corresponding ''DefinitionInformation'' object.

VARCHAR
_aws_profile Input Column

The AWS profile defines the AWS identity used. It can be defined via credentials or by assuming a IAM role.

STRUCT(
"type" VARCHAR,
"name" VARCHAR,
"account_id" VARCHAR,
"via_profile_name" VARCHAR,
"assumed_role_arn" VARCHAR,
"organization" STRUCT(
"account_name" VARCHAR,
"id" VARCHAR,
"tags" STRUCT(
"key" VARCHAR,
"value" VARCHAR
)[],
"master_account" STRUCT(
"id" VARCHAR,
"email" VARCHAR
),
"parents" STRUCT(
"type" VARCHAR,
"id" VARCHAR,
"name" VARCHAR,
"tags" STRUCT(
"key" VARCHAR,
"value" VARCHAR
)[]
)[]
)
)
Show child fields
_aws_profile.account_id

The AWS account id

_aws_profile.assumed_role_arn

The ARN of the assumed role

_aws_profile.name

The unique name of the profile.

_aws_profile.organization

Information about this profile's membership in the AWS organization.

Show child fields
_aws_profile.organization.account_name

The name of account speciifed by the organization

_aws_profile.organization.id

The organization id

_aws_profile.organization.master_account
Show child fields
_aws_profile.organization.master_account.email

The organization master account email address

_aws_profile.organization.master_account.id

The organization master account id

_aws_profile.organization.parents[]
Show child fields
_aws_profile.organization.parents[].id

The id of the parent

_aws_profile.organization.parents[].name

The name of the parent

_aws_profile.organization.parents[].tags[]
Show child fields
_aws_profile.organization.parents[].tags[].key
_aws_profile.organization.parents[].tags[].value
_aws_profile.organization.parents[].type

The type of parent can be an organization unit or a root

_aws_profile.organization.tags[]
Show child fields
_aws_profile.organization.tags[].key
_aws_profile.organization.tags[].value
_aws_profile.type

The type of profile, either 'credentials' or 'assumed_role'

_aws_profile.via_profile_name

This IAM role for this profile is assumed by first utilizing another profile with this name to obtain credentials.

_aws_region Input Column

The AWS region to use.

VARCHAR
arn

Arn of the resource definition version.

VARCHAR
creation_timestamp

The time, in milliseconds since the epoch, when the resource definition version was created.

VARCHAR
definition

Information about the definition.

STRUCT(
"resources" STRUCT(
"id" VARCHAR,
"name" VARCHAR,
"resource_data_container" STRUCT(
"local_device_resource_data" STRUCT(
"group_owner_setting" STRUCT(
"auto_add_group_owner" BOOLEAN,
"group_owner" VARCHAR
),
"source_path" VARCHAR
),
"local_volume_resource_data" STRUCT(
"destination_path" VARCHAR,
"group_owner_setting" STRUCT(
"auto_add_group_owner" BOOLEAN,
"group_owner" VARCHAR
),
"source_path" VARCHAR
),
"s3_machine_learning_model_resource_data" STRUCT(
"destination_path" VARCHAR,
"owner_setting" STRUCT(
"group_owner" VARCHAR,
"group_permission" VARCHAR
),
"s3_uri" VARCHAR
),
"sage_maker_machine_learning_model_resource_data" STRUCT(
"destination_path" VARCHAR,
"owner_setting" STRUCT(
"group_owner" VARCHAR,
"group_permission" VARCHAR
),
"sage_maker_job_arn" VARCHAR
),
"secrets_manager_secret_resource_data" STRUCT(
"arn" VARCHAR,
"additional_staging_labels_to_download" VARCHAR[]
)
)
)[]
)
Show child fields
definition.resources[]
Show child fields
definition.resources[].id

The resource ID, used to refer to a resource in the Lambda function configuration. Max length is 128 characters with pattern ''[a-zA-Z0-9:_-]+''. This must be unique within a Greengrass group.

definition.resources[].name

The descriptive resource name, which is displayed on the AWS IoT Greengrass console. Max length 128 characters with pattern ''[a-zA-Z0-9:_-]+''. This must be unique within a Greengrass group.

definition.resources[].resource_data_container

A container of data for all resource types.

Show child fields
definition.resources[].resource_data_container.local_device_resource_data

Attributes that define the local device resource.

Show child fields
definition.resources[].resource_data_container.local_device_resource_data.group_owner_setting

Group/owner related settings for local resources.

Show child fields
definition.resources[].resource_data_container.local_device_resource_data.group_owner_setting.auto_add_group_owner

If true, AWS IoT Greengrass automatically adds the specified Linux OS group owner of the resource to the Lambda process privileges. Thus the Lambda process will have the file access permissions of the added Linux group.

definition.resources[].resource_data_container.local_device_resource_data.group_owner_setting.group_owner

The name of the Linux OS group whose privileges will be added to the Lambda process. This field is optional.

definition.resources[].resource_data_container.local_device_resource_data.source_path

The local absolute path of the device resource. The source path for a device resource can refer only to a character device or block device under ''/dev''.

definition.resources[].resource_data_container.local_volume_resource_data

Attributes that define the local volume resource.

Show child fields
definition.resources[].resource_data_container.local_volume_resource_data.destination_path

The absolute local path of the resource inside the Lambda environment.

definition.resources[].resource_data_container.local_volume_resource_data.group_owner_setting

Allows you to configure additional group privileges for the Lambda process. This field is optional.

Show child fields
definition.resources[].resource_data_container.local_volume_resource_data.group_owner_setting.auto_add_group_owner

If true, AWS IoT Greengrass automatically adds the specified Linux OS group owner of the resource to the Lambda process privileges. Thus the Lambda process will have the file access permissions of the added Linux group.

definition.resources[].resource_data_container.local_volume_resource_data.group_owner_setting.group_owner

The name of the Linux OS group whose privileges will be added to the Lambda process. This field is optional.

definition.resources[].resource_data_container.local_volume_resource_data.source_path

The local absolute path of the volume resource on the host. The source path for a volume resource type cannot start with ''/sys''.

definition.resources[].resource_data_container.s3_machine_learning_model_resource_data

Attributes that define an Amazon S3 machine learning resource.

Show child fields
definition.resources[].resource_data_container.s3_machine_learning_model_resource_data.destination_path

The absolute local path of the resource inside the Lambda environment.

definition.resources[].resource_data_container.s3_machine_learning_model_resource_data.owner_setting

The owner setting for downloaded machine learning resources.

Show child fields
definition.resources[].resource_data_container.s3_machine_learning_model_resource_data.owner_setting.group_owner

The group owner of the resource. This is the name of an existing Linux OS group on the system or a GID. The group's permissions are added to the Lambda process.

definition.resources[].resource_data_container.s3_machine_learning_model_resource_data.owner_setting.group_permission

The permissions that the group owner has to the resource. Valid values are ''rw'' (read/write) or ''ro'' (read-only).

definition.resources[].resource_data_container.s3_machine_learning_model_resource_data.s3_uri

The URI of the source model in an S3 bucket. The model package must be in tar.gz or .zip format.

definition.resources[].resource_data_container.sage_maker_machine_learning_model_resource_data

Attributes that define an Amazon SageMaker machine learning resource.

Show child fields
definition.resources[].resource_data_container.sage_maker_machine_learning_model_resource_data.destination_path

The absolute local path of the resource inside the Lambda environment.

definition.resources[].resource_data_container.sage_maker_machine_learning_model_resource_data.owner_setting

The owner setting for downloaded machine learning resources.

Show child fields
definition.resources[].resource_data_container.sage_maker_machine_learning_model_resource_data.owner_setting.group_owner

The group owner of the resource. This is the name of an existing Linux OS group on the system or a GID. The group's permissions are added to the Lambda process.

definition.resources[].resource_data_container.sage_maker_machine_learning_model_resource_data.owner_setting.group_permission

The permissions that the group owner has to the resource. Valid values are ''rw'' (read/write) or ''ro'' (read-only).

definition.resources[].resource_data_container.sage_maker_machine_learning_model_resource_data.sage_maker_job_arn

The ARN of the Amazon SageMaker training job that represents the source model.

definition.resources[].resource_data_container.secrets_manager_secret_resource_data

Attributes that define a secret resource, which references a secret from AWS Secrets Manager.

Show child fields
definition.resources[].resource_data_container.secrets_manager_secret_resource_data.additional_staging_labels_to_download[]
definition.resources[].resource_data_container.secrets_manager_secret_resource_data.arn

The ARN of the Secrets Manager secret to make available on the core. The value of the secret's latest version (represented by the ''AWSCURRENT'' staging label) is included by default.

id

The ID of the resource definition version.

VARCHAR
version

The version of the resource definition version.

VARCHAR