Skip to content

version= now required for VpcV1 class instantiation #89

@christopher-horn

Description

@christopher-horn

This recent 0.28 update appears to now require that the version= be set when instantiating the VpcV1 class. This is inconsistent with the sample code out there and of course code we wrote.

>>> vpc = VpcV1(authenticator=iam)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: VpcV1.__init__() missing 1 required positional argument: 'version'
>>> vpc = VpcV1(authenticator=iam, version='2025-04-08')
>>> vpcs = vpc.list_vpcs()

I assume previous behavior used a default but it no longer does.

It is simple enough to fix in our code, which is what I will do, but someone ought to update the documentation and examples if this is the new behavior going forward.

Thanks,
Chris

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions