Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding EgressOnlyInternetGatewayId to EC2::Route #765

Merged
merged 1 commit into from Jul 13, 2017
Merged

Adding EgressOnlyInternetGatewayId to EC2::Route #765

merged 1 commit into from Jul 13, 2017

Conversation

ghost
Copy link

@ghost ghost commented Jul 13, 2017

No description provided.

@ghost ghost changed the title Adding EgressOnlyInternetGateway to EC2::Route Adding EgressOnlyInternetGatewayId to EC2::Route Jul 13, 2017
@@ -317,6 +317,7 @@ class Route(AWSObject):
props = {
'DestinationCidrBlock': (basestring, False),
'DestinationIpv6CidrBlock': (basestring, False),
'EgressOnlyInternetGatewayId': (basestring, False),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you like to add additional validation? You can follow the same pattern for the Destination* props in the validate method. Per the docs:

Required: Conditional. You must specify only one of the following properties: EgressOnlyInternetGatewayId, GatewayId, InstanceId, NatGatewayId, NetworkInterfaceId, or VpcPeeringConnectionId.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How does that look?

@markpeek markpeek merged commit 25c40f6 into cloudtools:master Jul 13, 2017
@markpeek
Copy link
Member

Excellent. Thank you for the PR and the extra validation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant