approval_teams
Creates, updates, deletes or gets an approval_team resource or lists approval_teams in a region
Overview
| Name | approval_teams |
| Type | Resource |
| Description | Resource Type definition for AWS::MPA::ApprovalTeam. |
| Id | awscc.mpa.approval_teams |
Fields
| Name | Datatype | Description |
|---|---|---|
approval_strategy | object | |
approvers | array | |
tags | array | |
policies | array | |
name | string | |
description | string | |
arn | string | |
version_id | string | |
update_session_arn | string | |
creation_time | string | |
number_of_approvers | integer | |
status | string | |
status_code | string | |
status_message | string | |
region | string | AWS region. |
For more information, see AWS::MPA::ApprovalTeam.
Methods
| Name | Accessible by | Required Params |
|---|---|---|
create_resource | INSERT | ApprovalStrategy, Approvers, Policies, Name, Description, 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 properties from an individual approval_team.
SELECT
region,
approval_strategy,
approvers,
tags,
policies,
name,
description,
arn,
version_id,
update_session_arn,
creation_time,
last_update_time,
number_of_approvers,
status,
status_code,
status_message
FROM awscc.mpa.approval_teams
WHERE region = 'us-east-1' AND data__Identifier = '<Arn>';
INSERT example
Use the following StackQL query and manifest file to create a new approval_team resource, using stack-deploy.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO awscc.mpa.approval_teams (
ApprovalStrategy,
Approvers,
Policies,
Name,
Description,
region
)
SELECT
'{{ ApprovalStrategy }}',
'{{ Approvers }}',
'{{ Policies }}',
'{{ Name }}',
'{{ Description }}',
'{{ region }}';
/*+ create */
INSERT INTO awscc.mpa.approval_teams (
ApprovalStrategy,
Approvers,
Tags,
Policies,
Name,
Description,
region
)
SELECT
'{{ ApprovalStrategy }}',
'{{ Approvers }}',
'{{ Tags }}',
'{{ Policies }}',
'{{ Name }}',
'{{ Description }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: approval_team
props:
- name: ApprovalStrategy
value:
MofN:
MinApprovalsRequired: '{{ MinApprovalsRequired }}'
- name: Approvers
value:
- PrimaryIdentityId: '{{ PrimaryIdentityId }}'
PrimaryIdentitySourceArn: '{{ PrimaryIdentitySourceArn }}'
ApproverId: '{{ ApproverId }}'
ResponseTime: '{{ ResponseTime }}'
PrimaryIdentityStatus: '{{ PrimaryIdentityStatus }}'
- name: Tags
value:
- Key: '{{ Key }}'
Value: '{{ Value }}'
- name: Policies
value:
- null
- name: Name
value: '{{ Name }}'
- name: Description
value: '{{ Description }}'
DELETE example
/*+ delete */
DELETE FROM awscc.mpa.approval_teams
WHERE data__Identifier = '<Arn>'
AND region = 'us-east-1';
Permissions
To operate on the approval_teams resource, the following permissions are required:
Create
mpa:CreateApprovalTeam,
mpa:TagResource,
mpa:GetApprovalTeam,
mpa:ListTagsForResource
Read
mpa:GetApprovalTeam,
mpa:ListTagsForResource
Update
mpa:GetApprovalTeam,
mpa:UpdateApprovalTeam,
mpa:TagResource,
mpa:ListTagsForResource,
mpa:UntagResource
Delete
mpa:StartActiveApprovalTeamDeletion,
mpa:DeleteInactiveApprovalTeamVersion,
mpa:GetApprovalTeam,
mpa:UntagResource
List
mpa:ListApprovalTeams,
mpa:ListTagsForResource