@get_and_cleanup(get_igw)
def cleanup_igw(igw, **kwargs):
    'Method to cleanup Internet Gateway matching the tag name. And also remove any vpc\n    that is attached to the Internet Gateway.\n    Args:\n        igw: Instance of Internet Gateway matching tag_name.\n    '
    for vpc in igw.attachments:
        igw.detach_from_vpc(VpcId=vpc['VpcId'])
    igw.delete()
Method to cleanup Internet Gateway matching the tag name. And also remove any vpc
that is attached to the Internet Gateway.
Args:
    igw: Instance of Internet Gateway matching tag_name.
@get_and_cleanup(get_igw)
def cleanup_igw(igw, **kwargs):
    'Method to cleanup Internet Gateway matching the tag name. And also remove any vpc\n    that is attached to the Internet Gateway.\n    Args:\n        igw: Instance of Internet Gateway matching tag_name.\n    '
    for vpc in igw.attachments:
        igw.detach_from_vpc(VpcId=vpc['VpcId'])
    igw.delete()