Enhancement : Ec2 - Add describe-vpc-endpoint-services method support. (#3108)
* Enhancement : Ec2 - Add describe-vpc-endpoint-services method support. * Fix:EC2-describe_vpc_endPoint_services changed the template * Fixed comments * Linting Co-authored-by: usmankb <usman@krazybee.com> Co-authored-by: Bert Blommers <info@bertblommers.nl>
This commit is contained in:
parent
a7ddcd7da3
commit
9894e1785a
3 changed files with 83 additions and 0 deletions
|
|
@ -3074,6 +3074,21 @@ class VPCBackend(object):
|
|||
|
||||
return vpc_end_point
|
||||
|
||||
def get_vpc_end_point_services(self):
|
||||
vpc_end_point_services = self.vpc_end_points.values()
|
||||
|
||||
services = []
|
||||
for value in vpc_end_point_services:
|
||||
services.append(value.service_name)
|
||||
|
||||
availability_zones = EC2Backend.describe_availability_zones(self)
|
||||
|
||||
return {
|
||||
"servicesDetails": vpc_end_point_services,
|
||||
"services": services,
|
||||
"availability_zones": availability_zones,
|
||||
}
|
||||
|
||||
|
||||
class VPCPeeringConnectionStatus(object):
|
||||
def __init__(self, code="initiating-request", message=""):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue