ServiceResource / Sub-Resource / SecurityGroup

SecurityGroup#

EC2.ServiceResource.SecurityGroup(id)#

Creates a SecurityGroup resource.:

security_group = ec2.SecurityGroup('id')
Parameters:

id (string) – The SecurityGroup’s id identifier. This must be set.

Return type:

EC2.SecurityGroup

Returns:

A SecurityGroup resource