Class: Fog::AWS::Elasticache::Cluster
- Inherits:
-
Model
- Object
- Model
- Fog::AWS::Elasticache::Cluster
- Defined in:
- lib/fog/aws/models/elasticache/cluster.rb
Instance Attribute Summary collapse
-
#parameter_group_name ⇒ Object
Returns the value of attribute parameter_group_name.
Instance Method Summary collapse
Instance Attribute Details
#parameter_group_name ⇒ Object
Returns the value of attribute parameter_group_name.
37 38 39 |
# File 'lib/fog/aws/models/elasticache/cluster.rb', line 37 def parameter_group_name @parameter_group_name end |
Instance Method Details
#destroy ⇒ Object
43 44 45 46 47 |
# File 'lib/fog/aws/models/elasticache/cluster.rb', line 43 def destroy requires :id service.delete_cache_cluster(id) true end |
#ready? ⇒ Boolean
39 40 41 |
# File 'lib/fog/aws/models/elasticache/cluster.rb', line 39 def ready? status == 'available' end |
#save ⇒ Object
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 |
# File 'lib/fog/aws/models/elasticache/cluster.rb', line 49 def save requires :id parameter_group ||= Hash.new notification_config ||= Hash.new service.create_cache_cluster( id, { :node_type => node_type, :security_group_names => security_groups, :num_nodes => num_nodes, :auto_minor_version_upgrade => auto_upgrade, :engine => engine, :engine_version => engine_version, :notification_topic_arn => notification_config['TopicArn'], :port => port, :preferred_availablility_zone => zone, :preferred_maintenance_window => maintenance_window, :s3_snapshot_location => s3_snapshot_location, :parameter_group_name => parameter_group_name || parameter_group['CacheParameterGroupName'], :cache_subnet_group_name => cache_subnet_group_name, :vpc_security_groups => vpc_security_groups, } ) end |