2011-03-18 17:34:03 -04:00
|
|
|
class AWS
|
|
|
|
module ELB
|
|
|
|
module Formats
|
|
|
|
|
|
|
|
BASIC = {
|
|
|
|
'ResponseMetadata' => {'RequestId' => String}
|
|
|
|
}
|
|
|
|
|
|
|
|
LOAD_BALANCER = {
|
2011-05-30 18:08:58 -04:00
|
|
|
"AvailabilityZones" => Array,
|
2011-05-30 18:57:07 -04:00
|
|
|
"CanonicalHostedZoneName" => String,
|
|
|
|
"CanonicalHostedZoneNameID" => String,
|
2011-03-18 17:34:03 -04:00
|
|
|
"CreatedTime" => Time,
|
2011-05-30 18:08:58 -04:00
|
|
|
"DNSName" => String,
|
2011-03-18 17:34:03 -04:00
|
|
|
"HealthCheck" => {"HealthyThreshold" => Integer, "Timeout" => Integer, "UnhealthyThreshold" => Integer, "Interval" => Integer, "Target" => String},
|
2011-05-30 18:08:58 -04:00
|
|
|
"Instances" => Array,
|
|
|
|
"ListenerDescriptions" => Array,
|
|
|
|
"LoadBalancerName" => String,
|
2011-03-18 17:34:03 -04:00
|
|
|
"Policies" => {"LBCookieStickinessPolicies" => Array, "AppCookieStickinessPolicies" => Array},
|
2011-05-30 18:57:07 -04:00
|
|
|
"SourceSecurityGroup" => {"GroupName" => String, "OwnerAlias" => String},
|
2011-03-18 17:34:03 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
CREATE_LOAD_BALANCER = BASIC.merge({
|
|
|
|
'CreateLoadBalancerResult' => { 'DNSName' => String }
|
|
|
|
})
|
|
|
|
|
|
|
|
DESCRIBE_LOAD_BALANCERS = BASIC.merge({
|
|
|
|
'DescribeLoadBalancersResult' => {'LoadBalancerDescriptions' => [LOAD_BALANCER]}
|
|
|
|
})
|
|
|
|
|
2011-12-19 18:43:45 -05:00
|
|
|
POLICY_ATTRIBUTE_DESCRIPTION = {
|
|
|
|
"AttributeName" => String,
|
|
|
|
"AttributeValue" => String
|
|
|
|
}
|
|
|
|
|
|
|
|
POLICY = {
|
|
|
|
"PolicyAttributeDescriptions" => [POLICY_ATTRIBUTE_DESCRIPTION],
|
|
|
|
"PolicyName" => String,
|
|
|
|
"PolicyTypeName" => String
|
|
|
|
}
|
|
|
|
|
|
|
|
DESCRIBE_LOAD_BALANCER_POLICIES = BASIC.merge({
|
|
|
|
'DescribeLoadBalancerPoliciesResult' => { 'PolicyDescriptions' => [POLICY] }
|
|
|
|
})
|
|
|
|
|
2011-12-19 16:20:53 -05:00
|
|
|
POLICY_ATTRIBUTE_TYPE_DESCRIPTION = {
|
|
|
|
"AttributeName" => String,
|
2011-12-19 18:43:45 -05:00
|
|
|
"AttributeType" => String,
|
2011-12-19 16:20:53 -05:00
|
|
|
"Cardinality" => String,
|
|
|
|
"DefaultValue" => String,
|
|
|
|
"Description" => String
|
|
|
|
}
|
|
|
|
|
|
|
|
POLICY_TYPE = {
|
|
|
|
"Description" => String,
|
|
|
|
"PolicyAttributeTypeDescriptions" => [POLICY_ATTRIBUTE_TYPE_DESCRIPTION],
|
|
|
|
"PolicyTypeName" => String
|
|
|
|
}
|
|
|
|
|
|
|
|
DESCRIBE_LOAD_BALANCER_POLICY_TYPES = BASIC.merge({
|
|
|
|
'DescribeLoadBalancerPolicyTypesResult' => { 'PolicyTypeDescriptions' => [POLICY_TYPE] }
|
|
|
|
})
|
|
|
|
|
2011-04-09 16:54:24 -04:00
|
|
|
CONFIGURE_HEALTH_CHECK = BASIC.merge({
|
|
|
|
'ConfigureHealthCheckResult' => {'HealthCheck' => {
|
|
|
|
'Target' => String,
|
|
|
|
'Interval' => Integer,
|
|
|
|
'Timeout' => Integer,
|
|
|
|
'UnhealthyThreshold' => Integer,
|
|
|
|
'HealthyThreshold' => Integer
|
|
|
|
}}
|
|
|
|
})
|
|
|
|
|
2011-03-18 17:34:03 -04:00
|
|
|
DELETE_LOAD_BALANCER = BASIC.merge({
|
|
|
|
'DeleteLoadBalancerResult' => NilClass
|
|
|
|
})
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|