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 | awscc.servicecatalog.service_action_associations |
Fields
- get (all properties)
- list (identifiers only)
| Name | Datatype | Description |
|---|---|---|
product_id | string | |
provisioning_artifact_id | string | |
service_action_id | string | |
region | string | AWS region. |
| Name | Datatype | Description |
|---|---|---|
product_id | string | |
provisioning_artifact_id | string | |
service_action_id | string | |
region | string | AWS region. |
For more information, see AWS::ServiceCatalog::ServiceActionAssociation.
Methods
| Name | Resource | Accessible by | Required Params |
|---|---|---|---|
create_resource | service_action_associations | INSERT | ProductId, ProvisioningArtifactId, ServiceActionId, region |
delete_resource | service_action_associations | DELETE | Identifier, region |
list_resources | service_action_associations_list_only | SELECT | region |
get_resource | service_action_associations | SELECT | Identifier, region |
SELECT examples
- get (all properties)
- list (identifiers only)
Gets all properties from an individual service_action_association.
SELECT
region,
product_id,
provisioning_artifact_id,
service_action_id
FROM awscc.servicecatalog.service_action_associations
WHERE
region = '{{ region }}' AND
Identifier = '{{ product_id }}|{{ provisioning_artifact_id }}|{{ service_action_id }}';
Lists all service_action_associations in a region.
SELECT
region,
product_id,
provisioning_artifact_id,
service_action_id
FROM awscc.servicecatalog.service_action_associations_list_only
WHERE
region = '{{ region }}';
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 awscc.servicecatalog.service_action_associations (
ProductId,
ProvisioningArtifactId,
ServiceActionId,
region
)
SELECT
'{{ product_id }}',
'{{ provisioning_artifact_id }}',
'{{ service_action_id }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;
/*+ create */
INSERT INTO awscc.servicecatalog.service_action_associations (
ProductId,
ProvisioningArtifactId,
ServiceActionId,
region
)
SELECT
'{{ product_id }}',
'{{ provisioning_artifact_id }}',
'{{ service_action_id }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: service_action_association
props:
- name: product_id
value: '{{ product_id }}'
- name: provisioning_artifact_id
value: '{{ provisioning_artifact_id }}'
- name: service_action_id
value: '{{ service_action_id }}'
DELETE example
/*+ delete */
DELETE FROM awscc.servicecatalog.service_action_associations
WHERE
Identifier = '{{ product_id }}|{{ provisioning_artifact_id }}|{{ service_action_id }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;
Additional Parameters
Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:
| Parameter | Description |
|---|---|
ClientToken | A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.A client token is valid for 36 hours once used. After that, a resource request with the same client token is treated as a new request. If you do not specify a client token, one is generated for inclusion in the request. |
RoleArn | The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.If you do not specify a role, a temporary session is created using your AWS user credentials. |
TypeVersionId | For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used. |
Permissions
To operate on the service_action_associations resource, the following permissions are required:
- Create
- Read
- Delete
- List
servicecatalog:AssociateServiceActionWithProvisioningArtifact,
servicecatalog:ListServiceActionsForProvisioningArtifact
servicecatalog:ListServiceActionsForProvisioningArtifact
servicecatalog:DisassociateServiceActionFromProvisioningArtifact,
servicecatalog:ListServiceActionsForProvisioningArtifact
servicecatalog:ListServiceActionsForProvisioningArtifact