https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/boto/rds/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/boto/rds/__pycache__/dbsecuritygroup.cpython-310.pyc
o

ckF[��@sDdZddlmZGdd�de�ZGdd�de�ZGdd�de�Zd	S)
z
Represents an DBSecurityGroup
�)�
SecurityGroupc@sReZdZdZ		ddd�Zdd�Zdd�Zd	d
�Zdd�Zdd
d�Z	ddd�Z
dS)�DBSecurityGroupa�
    Represents an RDS database security group

    Properties reference available from the AWS documentation at
    http://docs.amazonwebservices.com/AmazonRDS/latest/APIReference/API_DeleteDBSecurityGroup.html

    :ivar Status: The current status of the security group. Possible values are
        [ active, ? ]. Reference documentation lacks specifics of possibilities
    :ivar connection: :py:class:`boto.rds.RDSConnection` associated with the current object
    :ivar description: The description of the security group
    :ivar ec2_groups: List of :py:class:`EC2 Security Group
        <boto.ec2.securitygroup.SecurityGroup>` objects that this security
        group PERMITS
    :ivar ip_ranges: List of :py:class:`boto.rds.dbsecuritygroup.IPRange`
        objects (containing CIDR addresses) that this security group PERMITS
    :ivar name: Name of the security group
    :ivar owner_id: ID of the owner of the security group. Can be 'None'
    NcCs(||_||_||_||_g|_g|_dS�N)�
connection�owner_id�name�description�
ec2_groups�	ip_ranges)�selfrrrr�r�:/usr/lib/python3/dist-packages/boto/rds/dbsecuritygroup.py�__init__.s
zDBSecurityGroup.__init__cC�
d|jS)NzDBSecurityGroup:%s�r�rrrr
�__repr__7�
zDBSecurityGroup.__repr__cCsD|dkrt|�}|j�|�|S|dkr t|�}|j�|�|SdS)N�IPRange�EC2SecurityGroup)rr
�appendrr	)rr�attrsr�cidr�ec2_grprrr
�startElement:szDBSecurityGroup.startElementcCsR|dkr	||_dS|dkr||_dS|dkr||_dS|dkr!dSt|||�dS)N�OwnerId�DBSecurityGroupName�DBSecurityGroupDescription�IPRanges)rrr�setattr�rr�valuerrrr
�
endElementFs


zDBSecurityGroup.endElementcCs|j�|j�Sr)r�delete_dbsecurity_grouprrrrr
�deleteRszDBSecurityGroup.deletecCs4t|t�r|j}|j}nd}d}|j�|j|||�S)a�
        Add a new rule to this DBSecurity group.
        You need to pass in either a CIDR block to authorize or
        and EC2 SecurityGroup.

        :type cidr_ip: string
        :param cidr_ip: A valid CIDR IP range to authorize

        :type ec2_group: :class:`boto.ec2.securitygroup.SecurityGroup`
        :param ec2_group: An EC2 security group to authorize

        :rtype: bool
        :return: True if successful.
        N)�
isinstancerrrr�authorize_dbsecurity_group�r�cidr_ip�	ec2_group�
group_name�group_owner_idrrr
�	authorizeUs

�zDBSecurityGroup.authorizecCs<t|t�r|j}|j}|jj|j||d�S|jj|j|d�S)a�
        Revoke access to a CIDR range or EC2 SecurityGroup.
        You need to pass in either a CIDR block or
        an EC2 SecurityGroup from which to revoke access.

        :type cidr_ip: string
        :param cidr_ip: A valid CIDR IP range to revoke

        :type ec2_group: :class:`boto.ec2.securitygroup.SecurityGroup`
        :param ec2_group: An EC2 security group to revoke

        :rtype: bool
        :return: True if successful.
        )�ec2_security_group_name�ec2_security_group_owner_id�r()r%rrrr�revoke_dbsecurity_groupr'rrr
�revokeos
��zDBSecurityGroup.revoke)NNNN)NN)�__name__�
__module__�__qualname__�__doc__rrrr"r$r,r1rrrr
rs
�	
rc@�2eZdZdZddd�Zdd�Zdd�Zd	d
�ZdS)rzj
    Describes a CIDR address range for use in a DBSecurityGroup

    :ivar cidr_ip: IP Address range
    NcC�||_d|_d|_dSr)�parentr(�status�rr8rrr
r��
zIPRange.__init__cCr)Nz
IPRange:%sr/rrrr
r�rzIPRange.__repr__cC�dSrr�rrrrrrr
r��zIPRange.startElementcC�4|dkr	||_dS|dkr||_dSt|||�dS)N�CIDRIP�Status)r(r9rr rrr
r"��


zIPRange.endElementr�r2r3r4r5rrrr"rrrr
r�s
rc@r6)rzF
    Describes an EC2 security group for use in a DBSecurityGroup
    NcCr7r)r8rrr:rrr
r�r;zEC2SecurityGroup.__init__cCr)NzEC2SecurityGroup:%srrrrr
r�rzEC2SecurityGroup.__repr__cCr<rrr=rrr
r�r>zEC2SecurityGroup.startElementcCr?)N�EC2SecurityGroupName�EC2SecurityGroupOwnerId)rrrr rrr
r"�rBzEC2SecurityGroup.endElementrrCrrrr
r�s
rN)r5�boto.ec2.securitygroupr�objectrrrrrrr
�<module>s
o

https://t.me/RX1948 - 2025