service_action_associations
Creates, updates, deletes or gets a service_action_association
resource or lists service_action_associations
in a region
Overview
Name | service_action_associations |
Type | Resource |
Description | Resource Schema for AWS::ServiceCatalog::ServiceActionAssociation |
Id | aws.servicecatalog.service_action_associations |
Fields
Name | Datatype | Description |
---|---|---|
product_id | string | |
provisioning_artifact_id | string | |
service_action_id | string | |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | ProductId, ProvisioningArtifactId, ServiceActionId, region |
delete_resource | DELETE | data__Identifier, region |
list_resources | SELECT | region |
get_resource | SELECT | data__Identifier, region |
SELECT
examples
Gets all service_action_associations
in a region.
SELECT
region,
product_id,
provisioning_artifact_id,
service_action_id
FROM aws.servicecatalog.service_action_associations
WHERE region = 'us-east-1';
Gets all properties from an individual service_action_association
.
SELECT
region,
product_id,
provisioning_artifact_id,
service_action_id
FROM aws.servicecatalog.service_action_associations
WHERE region = 'us-east-1' AND data__Identifier = '<ProductId>|<ProvisioningArtifactId>|<ServiceActionId>';
INSERT
example
Use the following StackQL query and manifest file to create a new service_action_association
resource, using stack-deploy
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.servicecatalog.service_action_associations (
ProductId,
ProvisioningArtifactId,
ServiceActionId,
region
)
SELECT
'{{ ProductId }}',
'{{ ProvisioningArtifactId }}',
'{{ ServiceActionId }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.servicecatalog.service_action_associations (
ProductId,
ProvisioningArtifactId,
ServiceActionId,
region
)
SELECT
'{{ ProductId }}',
'{{ ProvisioningArtifactId }}',
'{{ ServiceActionId }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: service_action_association
props:
- name: ProductId
value: '{{ ProductId }}'
- name: ProvisioningArtifactId
value: '{{ ProvisioningArtifactId }}'
- name: ServiceActionId
value: '{{ ServiceActionId }}'
DELETE
example
/*+ delete */
DELETE FROM aws.servicecatalog.service_action_associations
WHERE data__Identifier = '<ProductId|ProvisioningArtifactId|ServiceActionId>'
AND region = 'us-east-1';
Permissions
To operate on the service_action_associations
resource, the following permissions are required:
Create
servicecatalog:AssociateServiceActionWithProvisioningArtifact,
servicecatalog:ListServiceActionsForProvisioningArtifact
Read
servicecatalog:ListServiceActionsForProvisioningArtifact
Delete
servicecatalog:DisassociateServiceActionFromProvisioningArtifact,
servicecatalog:ListServiceActionsForProvisioningArtifact
List
servicecatalog:ListServiceActionsForProvisioningArtifact