Skip to main content

vpc_endpoint_services

Creates, updates, deletes or gets a vpc_endpoint_service resource or lists vpc_endpoint_services in a region

Overview

Namevpc_endpoint_services
TypeResource
DescriptionResource Type definition for AWS::EC2::VPCEndpointService
Idaws.ec2.vpc_endpoint_services

Fields

NameDatatypeDescription
network_load_balancer_arnsarray
contributor_insights_enabledboolean
payer_responsibilitystring
service_idstring
acceptance_requiredboolean
gateway_load_balancer_arnsarray
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTregion
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__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.

/*+ create */
INSERT INTO aws.ec2.vpc_endpoint_services (
NetworkLoadBalancerArns,
ContributorInsightsEnabled,
PayerResponsibility,
AcceptanceRequired,
GatewayLoadBalancerArns,
region
)
SELECT
'{{ NetworkLoadBalancerArns }}',
'{{ ContributorInsightsEnabled }}',
'{{ PayerResponsibility }}',
'{{ AcceptanceRequired }}',
'{{ GatewayLoadBalancerArns }}',
'{{ region }}';

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