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
Idawscc.servicecatalog.service_actions

Fields

NameDatatypeDescription
accept_languagestring
namestring
definition_typestring
definitionarray
descriptionstring
idstring
regionstringAWS region.

For more information, see AWS::ServiceCatalog::ServiceAction.

Methods

NameResourceAccessible byRequired Params
create_resourceservice_actionsINSERTName, DefinitionType, Definition, region
delete_resourceservice_actionsDELETEIdentifier, region
update_resourceservice_actionsUPDATEIdentifier, PatchDocument, region
list_resourcesservice_actions_list_onlySELECTregion
get_resourceservice_actionsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual service_action.

SELECT
region,
accept_language,
name,
definition_type,
definition,
description,
id
FROM awscc.servicecatalog.service_actions
WHERE
region = 'us-east-1' AND
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 awscc.servicecatalog.service_actions (
Name,
DefinitionType,
Definition,
region
)
SELECT
'{{ name }}',
'{{ definition_type }}',
'{{ definition }}',
'{{ region }}';

UPDATE example

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

/*+ update */
UPDATE awscc.servicecatalog.service_actions
SET PatchDocument = string('{{ {
"AcceptLanguage": accept_language,
"Name": name,
"DefinitionType": definition_type,
"Definition": definition,
"Description": description
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ id }}';

DELETE example

/*+ delete */
DELETE FROM awscc.servicecatalog.service_actions
WHERE
Identifier = '{{ id }}' AND
region = 'us-east-1';

Permissions

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

servicecatalog:CreateServiceAction,
ssm:DescribeDocument,
iam:GetRole