vpc_endpoint_services
Creates, updates, deletes or gets a vpc_endpoint_service
resource or lists vpc_endpoint_services
in a region
Overview
Name | vpc_endpoint_services |
Type | Resource |
Description | Resource Type definition for AWS::EC2::VPCEndpointService |
Id | aws.ec2.vpc_endpoint_services |
Fields
Name | Datatype | Description |
---|---|---|
network_load_balancer_arns | array | |
contributor_insights_enabled | boolean | |
payer_responsibility | string | |
service_id | string | |
acceptance_required | boolean | |
gateway_load_balancer_arns | array | |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | 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_services
in a region.
SELECT
region,
network_load_balancer_arns,
contributor_insights_enabled,
payer_responsibility,
service_id,
acceptance_required,
gateway_load_balancer_arns
FROM aws.ec2.vpc_endpoint_services
WHERE region = 'us-east-1';
Gets all properties from an individual vpc_endpoint_service
.
SELECT
region,
network_load_balancer_arns,
contributor_insights_enabled,
payer_responsibility,
service_id,
acceptance_required,
gateway_load_balancer_arns
FROM aws.ec2.vpc_endpoint_services
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
resource, using stack-deploy
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.ec2.vpc_endpoint_services (
NetworkLoadBalancerArns,
ContributorInsightsEnabled,
PayerResponsibility,
AcceptanceRequired,
GatewayLoadBalancerArns,
region
)
SELECT
'{{ NetworkLoadBalancerArns }}',
'{{ ContributorInsightsEnabled }}',
'{{ PayerResponsibility }}',
'{{ AcceptanceRequired }}',
'{{ GatewayLoadBalancerArns }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.ec2.vpc_endpoint_services (
NetworkLoadBalancerArns,
ContributorInsightsEnabled,
PayerResponsibility,
AcceptanceRequired,
GatewayLoadBalancerArns,
region
)
SELECT
'{{ NetworkLoadBalancerArns }}',
'{{ ContributorInsightsEnabled }}',
'{{ PayerResponsibility }}',
'{{ AcceptanceRequired }}',
'{{ GatewayLoadBalancerArns }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: vpc_endpoint_service
props:
- name: NetworkLoadBalancerArns
value:
- '{{ NetworkLoadBalancerArns[0] }}'
- name: ContributorInsightsEnabled
value: '{{ ContributorInsightsEnabled }}'
- name: PayerResponsibility
value: '{{ PayerResponsibility }}'
- name: AcceptanceRequired
value: '{{ AcceptanceRequired }}'
- name: GatewayLoadBalancerArns
value:
- '{{ GatewayLoadBalancerArns[0] }}'
DELETE
example
/*+ delete */
DELETE FROM aws.ec2.vpc_endpoint_services
WHERE data__Identifier = '<ServiceId>'
AND region = 'us-east-1';
Permissions
To operate on the vpc_endpoint_services
resource, the following permissions are required:
Create
ec2:CreateVpcEndpointServiceConfiguration,
ec2:ModifyVpcEndpointServiceConfiguration,
ec2:ModifyVpcEndpointServicePayerResponsibility,
cloudwatch:ListManagedInsightRules,
cloudwatch:DeleteInsightRules,
cloudwatch:PutManagedInsightRules,
ec2:DescribeVpcEndpointServiceConfigurations
Update
ec2:ModifyVpcEndpointServiceConfiguration,
ec2:DeleteVpcEndpointServiceConfigurations,
ec2:DescribeVpcEndpointServiceConfigurations,
ec2:ModifyVpcEndpointServicePayerResponsibility,
cloudwatch:ListManagedInsightRules,
cloudwatch:DeleteInsightRules,
cloudwatch:PutManagedInsightRules
Read
ec2:DescribeVpcEndpointServiceConfigurations,
cloudwatch:ListManagedInsightRules
Delete
ec2:DeleteVpcEndpointServiceConfigurations,
ec2:DescribeVpcEndpointServiceConfigurations,
cloudwatch:ListManagedInsightRules,
cloudwatch:DeleteInsightRules
List
ec2:DescribeVpcEndpointServiceConfigurations,
cloudwatch:ListManagedInsightRules