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
Idawscc.ec2.vpc_endpoint_services

Fields

NameDatatypeDescription
network_load_balancer_arnsarray
contributor_insights_enabledboolean
payer_responsibilitystring
service_idstring
acceptance_requiredboolean
gateway_load_balancer_arnsarray
tagsarrayThe tags to add to the VPC endpoint service.
supported_ip_address_typesarraySpecify which Ip Address types are supported for VPC endpoint service.
supported_regionsarrayThe Regions from which service consumers can access the service.
regionstringAWS region.

For more information, see AWS::EC2::VPCEndpointService.

Methods

NameResourceAccessible byRequired Params
create_resourcevpc_endpoint_servicesINSERTregion
delete_resourcevpc_endpoint_servicesDELETEIdentifier, region
update_resourcevpc_endpoint_servicesUPDATEIdentifier, PatchDocument, region
list_resourcesvpc_endpoint_services_list_onlySELECTregion
get_resourcevpc_endpoint_servicesSELECTIdentifier, region

SELECT examples

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,
tags,
supported_ip_address_types,
supported_regions
FROM awscc.ec2.vpc_endpoint_services
WHERE
region = 'us-east-1' AND
Identifier = '{{ service_id }}';

INSERT example

Use the following StackQL query and manifest file to create a new vpc_endpoint_service resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.ec2.vpc_endpoint_services (
NetworkLoadBalancerArns,
ContributorInsightsEnabled,
PayerResponsibility,
AcceptanceRequired,
GatewayLoadBalancerArns,
Tags,
SupportedIpAddressTypes,
SupportedRegions,
region
)
SELECT
'{{ network_load_balancer_arns }}',
'{{ contributor_insights_enabled }}',
'{{ payer_responsibility }}',
'{{ acceptance_required }}',
'{{ gateway_load_balancer_arns }}',
'{{ tags }}',
'{{ supported_ip_address_types }}',
'{{ supported_regions }}',
'{{ region }}';

UPDATE example

Use the following StackQL query and manifest file to update a vpc_endpoint_service resource, using stack-deploy.

/*+ update */
UPDATE awscc.ec2.vpc_endpoint_services
SET PatchDocument = string('{{ {
"NetworkLoadBalancerArns": network_load_balancer_arns,
"ContributorInsightsEnabled": contributor_insights_enabled,
"PayerResponsibility": payer_responsibility,
"AcceptanceRequired": acceptance_required,
"GatewayLoadBalancerArns": gateway_load_balancer_arns,
"Tags": tags,
"SupportedIpAddressTypes": supported_ip_address_types,
"SupportedRegions": supported_regions
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ service_id }}';

DELETE example

/*+ delete */
DELETE FROM awscc.ec2.vpc_endpoint_services
WHERE
Identifier = '{{ service_id }}' AND
region = 'us-east-1';

Permissions

To operate on the vpc_endpoint_services resource, the following permissions are required:

ec2:CreateVpcEndpointServiceConfiguration,
ec2:ModifyVpcEndpointServicePayerResponsibility,
cloudwatch:ListManagedInsightRules,
cloudwatch:DeleteInsightRules,
cloudwatch:PutManagedInsightRules,
ec2:DescribeVpcEndpointServiceConfigurations,
vpce:AllowMultiRegion,
ec2:CreateTags