2011-09-27 10:48:38 -04:00
|
|
|
class AWS
|
2011-09-27 11:03:11 -04:00
|
|
|
module Elasticache
|
2011-09-27 10:48:38 -04:00
|
|
|
module Formats
|
|
|
|
|
|
|
|
BASIC = {
|
|
|
|
'ResponseMetadata' => {'RequestId' => String}
|
|
|
|
}
|
|
|
|
|
2011-09-06 15:51:30 -04:00
|
|
|
# Cache Security Groups
|
2011-09-27 10:48:38 -04:00
|
|
|
SECURITY_GROUP = {
|
2011-09-06 15:51:30 -04:00
|
|
|
'EC2SecurityGroups' => Array,
|
|
|
|
'CacheSecurityGroupName' => String,
|
|
|
|
'Description' => String,
|
|
|
|
'OwnerId' => String,
|
2011-09-27 10:48:38 -04:00
|
|
|
}
|
2011-09-27 10:52:46 -04:00
|
|
|
SINGLE_SECURITY_GROUP = BASIC.merge('CacheSecurityGroup' => SECURITY_GROUP)
|
|
|
|
DESCRIBE_SECURITY_GROUPS = BASIC.merge('CacheSecurityGroups' => [SECURITY_GROUP])
|
|
|
|
|
2011-09-22 20:13:37 -04:00
|
|
|
# Cache Parameter Groups
|
|
|
|
PARAMETER_GROUP = {
|
|
|
|
'CacheParameterGroupFamily' => String,
|
|
|
|
'CacheParameterGroupName' => String,
|
|
|
|
'Description' => String,
|
|
|
|
}
|
|
|
|
SINGLE_PARAMETER_GROUP = BASIC.merge('CacheParameterGroup' => PARAMETER_GROUP)
|
|
|
|
DESCRIBE_PARAMETER_GROUPS = BASIC.merge('CacheParameterGroups' => [PARAMETER_GROUP])
|
|
|
|
|
2011-09-06 15:51:30 -04:00
|
|
|
# Cache Clusters - more parameters get added as the lifecycle progresses
|
|
|
|
CACHE_CLUSTER = {
|
|
|
|
'AutoMinorVersionUpgrade' => String, # actually TrueClass or FalseClass
|
|
|
|
'CacheSecurityGroups' => Array,
|
|
|
|
'CacheClusterId' => String,
|
|
|
|
'CacheClusterStatus' => String,
|
|
|
|
'CacheNodeType' => String,
|
|
|
|
'Engine' => String,
|
|
|
|
'EngineVersion' => String,
|
|
|
|
'CacheParameterGroup' => Hash,
|
|
|
|
'NumCacheNodes' => Integer,
|
|
|
|
'PreferredMaintenanceWindow' => String,
|
2011-09-13 05:00:45 -04:00
|
|
|
'CacheNodes' => Array,
|
2011-09-21 20:30:10 -04:00
|
|
|
'PendingModifiedValues' => Hash,
|
2011-09-06 15:51:30 -04:00
|
|
|
}
|
2011-09-13 05:00:45 -04:00
|
|
|
CACHE_CLUSTER_RUNNING = CACHE_CLUSTER.merge({
|
2011-09-06 15:51:30 -04:00
|
|
|
'CacheClusterCreateTime' => DateTime,
|
2011-09-13 05:00:45 -04:00
|
|
|
'PreferredAvailabilityZone' => String,
|
|
|
|
})
|
|
|
|
CACHE_CLUSTER_MODIFIED = CACHE_CLUSTER_RUNNING.merge({
|
2011-09-06 15:51:30 -04:00
|
|
|
'NotificationConfiguration' => Hash,
|
2011-09-13 05:00:45 -04:00
|
|
|
'PendingModifiedValues' => Hash,
|
|
|
|
})
|
2011-09-06 15:51:30 -04:00
|
|
|
SINGLE_CACHE_CLUSTER = BASIC.merge('CacheCluster' => CACHE_CLUSTER)
|
|
|
|
DESCRIBE_CACHE_CLUSTERS = BASIC.merge('CacheClusters' => [CACHE_CLUSTER])
|
2011-09-21 21:59:17 -04:00
|
|
|
|
|
|
|
EVENT = {
|
|
|
|
'Date' => DateTime,
|
|
|
|
'Message' => String,
|
|
|
|
'SourceIdentifier' => String,
|
|
|
|
'SourceType' => String,
|
|
|
|
}
|
|
|
|
EVENT_LIST = [EVENT]
|
2011-09-27 10:48:38 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|