Class: CloudFormation::Bridge::Resources::ElastiCacheNodeUrls
- Includes:
- BaseElastiCacheResource
- Defined in:
- lib/cloud_formation/bridge/resources/elasti_cache_node_urls.rb
Constant Summary
Constants included from BaseElastiCacheResource
BaseElastiCacheResource::UnknownCacheEngineError
Instance Method Summary collapse
- #create(request) ⇒ Object (also: #update)
- #delete(request) ⇒ Object
Methods included from BaseElastiCacheResource
#client, #config_endpoint, #find_cluster, #node_urls, #replication_group_available?, #wait_until_cluster_is_available
Methods inherited from Base
Instance Method Details
#create(request) ⇒ Object Also known as: update
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/cloud_formation/bridge/resources/elasti_cache_node_urls.rb', line 12 def create(request) require_fields(request, ELASTI_CACHE::CLUSTER_ID) cluster_id = request.resource_properties[ELASTI_CACHE::CLUSTER_ID] wait_until_cluster_is_available(cluster_id) data = { ELASTI_CACHE::REPLICA_CLUSTER_ID => cluster_id, ELASTI_CACHE::NODE_URLS => node_urls(cluster_id), } if config = config_endpoint(cluster_id) data[ELASTI_CACHE::CONFIG_ENDPOINT] = config end { FIELDS::DATA => data, FIELDS::PHYSICAL_RESOURCE_ID => cluster_id, } end |
#delete(request) ⇒ Object
37 38 |
# File 'lib/cloud_formation/bridge/resources/elasti_cache_node_urls.rb', line 37 def delete(request) end |