service_actions
Creates, updates, deletes or gets a service_action
resource or lists service_actions
in a region
Overview
Name | service_actions |
Type | Resource |
Description | Resource Schema for AWS::ServiceCatalog::ServiceAction |
Id | aws.servicecatalog.service_actions |
Fields
Name | Datatype | Description |
---|---|---|
accept_language | string | |
name | string | |
definition_type | string | |
definition | array | |
description | string | |
id | string | |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | Name, DefinitionType, Definition, region |
delete_resource | DELETE | data__Identifier, region |
update_resource | UPDATE | data__Identifier, data__PatchDocument, region |
list_resources | SELECT | region |
get_resource | SELECT | data__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
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.servicecatalog.service_actions (
Name,
DefinitionType,
Definition,
region
)
SELECT
'{{ Name }}',
'{{ DefinitionType }}',
'{{ Definition }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.servicecatalog.service_actions (
AcceptLanguage,
Name,
DefinitionType,
Definition,
Description,
region
)
SELECT
'{{ AcceptLanguage }}',
'{{ Name }}',
'{{ DefinitionType }}',
'{{ Definition }}',
'{{ Description }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: service_action
props:
- name: AcceptLanguage
value: '{{ AcceptLanguage }}'
- name: Name
value: '{{ Name }}'
- name: DefinitionType
value: '{{ DefinitionType }}'
- name: Definition
value:
- Key: '{{ Key }}'
Value: '{{ Value }}'
- name: Description
value: '{{ Description }}'
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