@@ -152,7 +152,7 @@ def __init_subclass__(cls, register=True, **kwargs):
152152
153153 super ().__init_subclass__ (** kwargs )
154154
155- def __init__ (self , name , id , arn = None , * , tags = ()):
155+ def __init__ (self , name , id , * , arn = None , tags = ()):
156156 self .name = name
157157 self .id = id
158158 self .arn = arn
@@ -813,7 +813,7 @@ def delete(self, get_client):
813813class ECSCluster (Resource ):
814814 TYPE_FILTER = "ecs:cluster"
815815
816- def __init__ (self , name , id , services = (), arn = None , tags = ()):
816+ def __init__ (self , name , id , * , services = (), arn = None , tags = ()):
817817 super ().__init__ (name , id , arn = arn , tags = tags )
818818 self .services = sorted (
819819 services ,
@@ -855,7 +855,7 @@ def get_dependencies(self):
855855class ECSService (Resource ):
856856 TYPE_FILTER = "ecs:service"
857857
858- def __init__ (self , name , id , cluster , arn = None , tags = ()):
858+ def __init__ (self , name , id , cluster , * , arn = None , tags = ()):
859859 super ().__init__ (name , id , arn = arn , tags = tags )
860860 self .cluster = cluster
861861
@@ -882,7 +882,7 @@ def delete(self, get_client):
882882class ECSTaskDefinition (VersionedResource ):
883883 TYPE_FILTER = "ecs:task-definition"
884884
885- def __init__ (self , name , id , status = None , arn = None , tags = ()):
885+ def __init__ (self , name , id , * , status = None , arn = None , tags = ()):
886886 super ().__init__ (name , id , arn = arn , tags = tags )
887887 self .status = status
888888
@@ -1011,7 +1011,7 @@ def get_display_name(self):
10111011class GlueDatabase (Resource ):
10121012 TYPE_FILTER = "glue:database"
10131013
1014- def __init__ (self , name , catalog_id , arn = None , tags = ()):
1014+ def __init__ (self , name , catalog_id , * , arn = None , tags = ()):
10151015 super ().__init__ (name , name , arn = arn , tags = tags )
10161016 self .catalog_id = catalog_id
10171017
@@ -1039,13 +1039,13 @@ def delete(self, get_client):
10391039class IAMInstanceProfile (Resource ):
10401040 TYPE_FILTER = "iam:instanceprofile"
10411041
1042- def __init__ (self , name , id , roles = (), arn = None , tags = ()):
1042+ def __init__ (self , name , id , * , roles = (), arn = None , tags = ()):
10431043 super ().__init__ (name , id , arn = arn , tags = tags )
10441044 self .roles = roles
10451045
10461046 @classmethod
10471047 def from_arn (cls , arn , * , roles = (), tags = ()):
1048- return cls (arn .name , arn .id , roles , arn = arn , tags = tags )
1048+ return cls (arn .name , arn .id , roles = roles , arn = arn , tags = tags )
10491049
10501050 @classmethod
10511051 def gather (cls , get_client , name_matcher , _options ):
@@ -1227,7 +1227,7 @@ def delete(self, get_client):
12271227class NetworkInterface (Resource ):
12281228 TYPE_FILTER = "ec2:network-interface"
12291229
1230- def __init__ (self , name , id , status , arn = None , tags = ()):
1230+ def __init__ (self , name , id , status , * , arn = None , tags = ()):
12311231 super ().__init__ (name , id , arn = arn , tags = tags )
12321232 self .status = status
12331233
@@ -1333,7 +1333,7 @@ def delete(self, get_client):
13331333class SecurityGroup (Resource ):
13341334 TYPE_FILTER = "ec2:security-group"
13351335
1336- def __init__ (self , name , id , network_interfaces , arn = None , tags = ()):
1336+ def __init__ (self , name , id , network_interfaces , * , arn = None , tags = ()):
13371337 super ().__init__ (name , id , arn = arn , tags = tags )
13381338 self .network_interfaces = sorted (
13391339 network_interfaces ,
@@ -1428,6 +1428,7 @@ def __init__(
14281428 self ,
14291429 name ,
14301430 id ,
1431+ * ,
14311432 topic_arn = None ,
14321433 protocol = None ,
14331434 endpoint = None ,
0 commit comments