Skip to main content

component_types

Used to retrieve a list of component_types in a region or to create or delete a component_types resource, use component_type to read or update an individual resource.

Overview

Namecomponent_types
TypeResource
DescriptionResource schema for AWS::IoTTwinMaker::ComponentType
Idaws.iottwinmaker.component_types

Fields

NameDatatypeDescription
workspace_idstringThe ID of the workspace that contains the component type.
component_type_idstringThe ID of the component type.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTWorkspaceId, ComponentTypeId, region
delete_resourceDELETEdata__Identifier, region
list_resourceSELECTregion

SELECT Example

SELECT
region,
workspace_id,
component_type_id
FROM aws.iottwinmaker.component_types
WHERE region = 'us-east-1';

INSERT Example

Use the following StackQL query and manifest file to create a new component_type resource, using stack-deploy.

/*+ create */
INSERT INTO aws.iottwinmaker.component_types (
WorkspaceId,
ComponentTypeId,
region
)
SELECT
'{{ WorkspaceId }}',
'{{ ComponentTypeId }}',
'{{ region }}';

DELETE Example

/*+ delete */
DELETE FROM aws.iottwinmaker.component_types
WHERE data__Identifier = '<WorkspaceId|ComponentTypeId>'
AND region = 'us-east-1';

Permissions

To operate on the component_types resource, the following permissions are required:

Create

iottwinmaker:CreateComponentType,
iottwinmaker:GetComponentType,
iottwinmaker:GetWorkspace,
iottwinmaker:ListTagsForResource,
iottwinmaker:TagResource

Delete

iottwinmaker:DeleteComponentType,
iottwinmaker:GetComponentType,
iottwinmaker:GetWorkspace

List

iottwinmaker:GetComponentType,
iottwinmaker:GetWorkspace,
iottwinmaker:ListComponentTypes,
iottwinmaker:ListTagsForResource