File: //usr/lib/python3/dist-packages/boto/rds/__pycache__/optiongroup.cpython-310.pyc
o
ckF[1= � @ s� d Z ddlmZ ddlmZ G dd� de�ZG dd� de�ZG dd � d e�ZG d
d� de�Z G dd
� d
e�Z
G dd� de�ZdS )z
Represents an OptionGroup
� )�DBSecurityGroup)� ResultSetc @ s@ e Zd ZdZ ddd�Zdd� Zdd � Zd
d� Zdd
� ZdS )�OptionGroupa�
Represents an RDS option group
Properties reference available from the AWS documentation at
http://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_OptionGroup.html
:ivar connection: :py:class:`boto.rds.RDSConnection` associated with the
current object
:ivar name: Name of the option group
:ivar description: The description of the option group
:ivar engine_name: The name of the database engine to use
:ivar major_engine_version: The major version number of the engine to use
:ivar allow_both_vpc_and_nonvpc: Indicates whether this option group can be
applied to both VPC and non-VPC instances.
The value ``True`` indicates the option
group can be applied to both VPC and
non-VPC instances.
:ivar vpc_id: If AllowsVpcAndNonVpcInstanceMemberships is 'false', this
field is blank. If AllowsVpcAndNonVpcInstanceMemberships is
``True`` and this field is blank, then this option group can
be applied to both VPC and non-VPC instances. If this field
contains a value, then this option group can only be applied
to instances that are in the VPC indicated by this field.
:ivar options: The list of :py:class:`boto.rds.optiongroup.Option` objects
associated with the group
NFc C s. || _ || _|| _|| _|| _|| _g | _d S �N)�name�engine_name�major_engine_version�description�allow_both_vpc_and_nonvpc�vpc_id�options)�self�
connectionr r r r r
r � r �6/usr/lib/python3/dist-packages/boto/rds/optiongroup.py�__init__: s
zOptionGroup.__init__c C �
d| j S )NzOptionGroup:%s�r �r
r r r �__repr__E �
zOptionGroup.__repr__c C s |dkrt dtfg�| _d S d S )N�Options)r �Optionr �r
r �attrsr r r r �startElementH s
�zOptionGroup.startElementc C s� |dkr || _ d S |dkr|| _d S |dkr|| _d S |dkr$|| _d S |dkr8|�� dkr3d| _d S d| _d S |d krA|| _d S t| ||� d S )
N�OptionGroupName�
EngineName�MajorEngineVersion�OptionGroupDescription�%AllowsVpcAndNonVpcInstanceMemberships�trueTF�VpcId)r r r r �lowerr
r �setattr�r
r �valuer r r r �
endElementP s
zOptionGroup.endElementc C s | j �| j�S r )r �delete_option_groupr r r r r �deletec s zOptionGroup.delete)NNNNNFN) �__name__�
__module__�__qualname__�__doc__r r r r'