Dashboard
PHP:
8.2.30
OS:
Linux
User:
dh_nv8b2m
/
/
usr
/
lib
/
python3
/
dist-packages
/
boto
/
rds
/
__pycache__
📤 Upload
📝 New File
📁 New Folder
Close
Editing: vpcsecuritygroupmembership.cpython-310.pyc
o ckF[; � @ s d Z G dd� de�ZdS )z) Represents a VPCSecurityGroupMembership c @ s2 e Zd ZdZddd�Zdd� Zdd� Zd d � ZdS )�VPCSecurityGroupMembershipaI Represents VPC Security Group that this RDS database is a member of Properties reference available from the AWS documentation at http://docs.aws.amazon.com/AmazonRDS/latest/APIReference/ API_VpcSecurityGroupMembership.html Example:: pri = "sg-abcdefgh" sec = "sg-hgfedcba" # Create with list of str db = c.create_dbinstance(... vpc_security_groups=[pri], ... ) # Modify with list of str db.modify(... vpc_security_groups=[pri,sec], ... ) # Create with objects memberships = [] membership = VPCSecurityGroupMembership() membership.vpc_group = pri memberships.append(membership) db = c.create_dbinstance(... vpc_security_groups=memberships, ... ) # Modify with objects memberships = d.vpc_security_groups membership = VPCSecurityGroupMembership() membership.vpc_group = sec memberships.append(membership) db.modify(... vpc_security_groups=memberships, ... ) :ivar connection: :py:class:`boto.rds.RDSConnection` associated with the current object :ivar vpc_group: This id of the VPC security group :ivar status: Status of the VPC security group membership <boto.ec2.securitygroup.SecurityGroup>` objects that this RDS Instance is a member of Nc C s || _ || _|| _d S �N)� connection�status� vpc_group)�selfr r r � r �E/usr/lib/python3/dist-packages/boto/rds/vpcsecuritygroupmembership.py�__init__D s z#VPCSecurityGroupMembership.__init__c C s d| j S )NzVPCSecurityGroupMembership:%s)r )r r r r �__repr__I s z#VPCSecurityGroupMembership.__repr__c C s d S r r )r �name�attrsr r r r �startElementL s z'VPCSecurityGroupMembership.startElementc C s4 |dkr || _ d S |dkr|| _d S t| ||� d S )N�VpcSecurityGroupId�Status)r r �setattr)r r �valuer r r r � endElementO s z%VPCSecurityGroupMembership.endElement)NNN)�__name__� __module__�__qualname__�__doc__r r r r r r r r r s (r N)r �objectr r r r r �<module> s
Save
Cancel