You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Of the two, only NatInstanceProvider is exported. Both are usable through aws_ec2.NatProvider.instance() and aws_ec2.NatProvider.gateway() respectively, but since only Instance is exported the docs indicate that NatProvider is only implemented by NatInstanceProvider. For consistency I think they should both be available through both methods of instantiation. Is there a specific reason for this, or is it an oversight/bug?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
[the below is based on my shaky understanding of TS - apologies if it makes no sense]
There are two implementations of NatProvider: NatGatewayProvider and NatInstanceProvider.
Of the two, only NatInstanceProvider is exported. Both are usable through
aws_ec2.NatProvider.instance()
andaws_ec2.NatProvider.gateway()
respectively, but since only Instance is exported the docs indicate thatNatProvider
is only implemented byNatInstanceProvider
. For consistency I think they should both be available through both methods of instantiation. Is there a specific reason for this, or is it an oversight/bug?Beta Was this translation helpful? Give feedback.
All reactions