Skip to main content

studio_components

Creates, updates, deletes or gets a studio_component resource or lists studio_components in a region

Overview

Namestudio_components
TypeResource
DescriptionRepresents a studio component that connects a non-Nimble Studio resource in your account to your studio
Idaws.nimblestudio.studio_components

Fields

NameDatatypeDescription
configurationundefined

The configuration of the studio component, based on component type.

descriptionstring

The description.

ec2_security_group_idsarray

The EC2 security groups that control access to the studio component.

initialization_scriptsarray

Initialization scripts for studio components.

namestring

The name for the studio component.

runtime_role_arnstring
script_parametersarray

Parameters for the studio component scripts.

secure_initialization_role_arnstring
studio_component_idstring
studio_idstring

The studio ID.

subtypestring
tagsobject
typestring
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTStudioId, Name, Type, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all studio_components in a region.

SELECT
region,
configuration,
description,
ec2_security_group_ids,
initialization_scripts,
name,
runtime_role_arn,
script_parameters,
secure_initialization_role_arn,
studio_component_id,
studio_id,
subtype,
tags,
type
FROM aws.nimblestudio.studio_components
WHERE region = 'us-east-1';

Gets all properties from an individual studio_component.

SELECT
region,
configuration,
description,
ec2_security_group_ids,
initialization_scripts,
name,
runtime_role_arn,
script_parameters,
secure_initialization_role_arn,
studio_component_id,
studio_id,
subtype,
tags,
type
FROM aws.nimblestudio.studio_components
WHERE region = 'us-east-1' AND data__Identifier = '<StudioComponentId>|<StudioId>';

INSERT example

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

/*+ create */
INSERT INTO aws.nimblestudio.studio_components (
Name,
StudioId,
Type,
region
)
SELECT
'{{ Name }}',
'{{ StudioId }}',
'{{ Type }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.nimblestudio.studio_components
WHERE data__Identifier = '<StudioComponentId|StudioId>'
AND region = 'us-east-1';

Permissions

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

Create

iam:PassRole,
nimble:CreateStudioComponent,
nimble:GetStudioComponent,
nimble:TagResource,
ds:AuthorizeApplication,
ec2:DescribeSecurityGroups,
fsx:DescribeFilesystems,
ds:DescribeDirectories

Read

nimble:GetStudioComponent

Update

iam:PassRole,
nimble:UpdateStudioComponent,
nimble:GetStudioComponent,
ds:AuthorizeApplication,
ec2:DescribeSecurityGroups,
fsx:DescribeFilesystems,
ds:DescribeDirectories

Delete

nimble:DeleteStudioComponent,
nimble:GetStudioComponent,
nimble:UntagResource,
ds:UnauthorizeApplication

List

nimble:ListStudioComponents