vpc_endpoint_service_permissions
Creates, updates, deletes or gets a vpc_endpoint_service_permission
resource or lists vpc_endpoint_service_permissions
in a region
Overview
Name | vpc_endpoint_service_permissions |
Type | Resource |
Description | Resource Type definition for AWS::EC2::VPCEndpointServicePermissions |
Id | aws.ec2.vpc_endpoint_service_permissions |
Fields
Name | Datatype | Description |
---|---|---|
allowed_principals | array | |
service_id | string | |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | ServiceId, 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 vpc_endpoint_service_permissions
in a region.
SELECT
region,
allowed_principals,
service_id
FROM aws.ec2.vpc_endpoint_service_permissions
WHERE region = 'us-east-1';
Gets all properties from an individual vpc_endpoint_service_permission
.
SELECT
region,
allowed_principals,
service_id
FROM aws.ec2.vpc_endpoint_service_permissions
WHERE region = 'us-east-1' AND data__Identifier = '<ServiceId>';
INSERT
example
Use the following StackQL query and manifest file to create a new vpc_endpoint_service_permission
resource, using stack-deploy
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.ec2.vpc_endpoint_service_permissions (
ServiceId,
region
)
SELECT
'{{ ServiceId }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.ec2.vpc_endpoint_service_permissions (
AllowedPrincipals,
ServiceId,
region
)
SELECT
'{{ AllowedPrincipals }}',
'{{ ServiceId }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: vpc_endpoint_service_permission
props:
- name: AllowedPrincipals
value:
- '{{ AllowedPrincipals[0] }}'
- name: ServiceId
value: '{{ ServiceId }}'
DELETE
example
/*+ delete */
DELETE FROM aws.ec2.vpc_endpoint_service_permissions
WHERE data__Identifier = '<ServiceId>'
AND region = 'us-east-1';
Permissions
To operate on the vpc_endpoint_service_permissions
resource, the following permissions are required:
Create
ec2:CreateVpcEndpointServicePermissions,
ec2:ModifyVpcEndpointServicePermissions,
ec2:DeleteVpcEndpointServicePermissions,
ec2:DescribeVpcEndpointServicePermissions
Update
ec2:CreateVpcEndpointServicePermissions,
ec2:ModifyVpcEndpointServicePermissions,
ec2:DeleteVpcEndpointServicePermissions,
ec2:DescribeVpcEndpointServicePermissions
Read
ec2:CreateVpcEndpointServicePermissions,
ec2:ModifyVpcEndpointServicePermissions,
ec2:DeleteVpcEndpointServicePermissions,
ec2:DescribeVpcEndpointServicePermissions
Delete
ec2:CreateVpcEndpointServicePermissions,
ec2:ModifyVpcEndpointServicePermissions,
ec2:DeleteVpcEndpointServicePermissions,
ec2:DescribeVpcEndpointServicePermissions
List
ec2:CreateVpcEndpointServicePermissions,
ec2:ModifyVpcEndpointServicePermissions,
ec2:DeleteVpcEndpointServicePermissions,
ec2:DescribeVpcEndpointServicePermissions