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,
|
2012-07-06 11:24:12 -04:00
|
|
|
"ListenerDescriptions" => [{
|
|
|
|
'PolicyNames' => Array,
|
|
|
|
'Listener' => {
|
|
|
|
'InstancePort' => Integer,
|
|
|
|
'InstanceProtocol' => String,
|
|
|
|
'LoadBalancerPort' => Integer,
|
|
|
|
'Protocol' => String,
|
|
|
|
'SSLCertificateId' => Fog::Nullable::String
|
|
|
|
}
|
|
|
|
}],
|
2011-05-30 18:08:58 -04:00
|
|
|
"LoadBalancerName" => String,
|
2011-03-18 17:34:03 -04:00
|
|
|
"Policies" => {"LBCookieStickinessPolicies" => Array, "AppCookieStickinessPolicies" => Array},
|
2012-06-25 16:36:21 -04:00
|
|
|
"Scheme" => String,
|
2012-07-06 11:24:12 -04:00
|
|
|
"SecurityGroups" => [Fog::Nullable::String],
|
2011-05-30 18:57:07 -04:00
|
|
|
"SourceSecurityGroup" => {"GroupName" => String, "OwnerAlias" => String},
|
2012-07-06 11:24:12 -04:00
|
|
|
"Subnets" => [Fog::Nullable::String]
|
2011-03-18 17:34:03 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
CREATE_LOAD_BALANCER = BASIC.merge({
|
|
|
|
'CreateLoadBalancerResult' => { 'DNSName' => String }
|
|
|
|
})
|
|
|
|
|
|
|
|
DESCRIBE_LOAD_BALANCERS = BASIC.merge({
|
2012-08-16 16:17:42 -04:00
|
|
|
'DescribeLoadBalancersResult' => {'LoadBalancerDescriptions' => [LOAD_BALANCER], 'NextMarker' => Fog::Nullable::String}
|
2011-03-18 17:34:03 -04:00
|
|
|
})
|
|
|
|
|
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({
|
2012-08-16 12:57:46 -04:00
|
|
|
'DescribeLoadBalancerPolicyTypesResult' => {'PolicyTypeDescriptions' => [POLICY_TYPE] }
|
2011-12-19 16:20:53 -05:00
|
|
|
})
|
|
|
|
|
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
|