Skip to main content

service_actions

Creates, updates, deletes or gets a service_action resource or lists service_actions in a region

Overview

Nameservice_actions
TypeResource
DescriptionResource Schema for AWS::ServiceCatalog::ServiceAction
Idaws.servicecatalog.service_actions

Fields

NameDatatypeDescription
accept_languagestring
namestring
definition_typestring
definitionarray
descriptionstring
idstring
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTName, DefinitionType, Definition, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all service_actions in a region.

SELECT
region,
accept_language,
name,
definition_type,
definition,
description,
id
FROM aws.servicecatalog.service_actions
WHERE region = 'us-east-1';

Gets all properties from an individual service_action.

SELECT
region,
accept_language,
name,
definition_type,
definition,
description,
id
FROM aws.servicecatalog.service_actions
WHERE region = 'us-east-1' AND data__Identifier = '<Id>';

INSERT example

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

/*+ create */
INSERT INTO aws.servicecatalog.service_actions (
Name,
DefinitionType,
Definition,
region
)
SELECT
'{{ Name }}',
'{{ DefinitionType }}',
'{{ Definition }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.servicecatalog.service_actions
WHERE data__Identifier = '<Id>'
AND region = 'us-east-1';

Permissions

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

Create

servicecatalog:CreateServiceAction,
ssm:DescribeDocument,
iam:GetRole

Read

servicecatalog:DescribeServiceAction

Update

servicecatalog:UpdateServiceAction,
iam:GetRole,
ssm:DescribeDocument

Delete

servicecatalog:DeleteServiceAction

List

servicecatalog:ListServiceActions