elasticloadbalancing-2012-06-01.examples.json 30 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036
  1. {
  2. "version": "1.0",
  3. "examples": {
  4. "AddTags": [
  5. {
  6. "input": {
  7. "LoadBalancerNames": [
  8. "my-load-balancer"
  9. ],
  10. "Tags": [
  11. {
  12. "Key": "project",
  13. "Value": "lima"
  14. },
  15. {
  16. "Key": "department",
  17. "Value": "digital-media"
  18. }
  19. ]
  20. },
  21. "comments": {
  22. "input": {
  23. },
  24. "output": {
  25. }
  26. },
  27. "description": "This example adds two tags to the specified load balancer.",
  28. "id": "elb-add-tags-1",
  29. "title": "To add tags to a load balancer"
  30. }
  31. ],
  32. "ApplySecurityGroupsToLoadBalancer": [
  33. {
  34. "input": {
  35. "LoadBalancerName": "my-load-balancer",
  36. "SecurityGroups": [
  37. "sg-fc448899"
  38. ]
  39. },
  40. "output": {
  41. "SecurityGroups": [
  42. "sg-fc448899"
  43. ]
  44. },
  45. "comments": {
  46. "input": {
  47. },
  48. "output": {
  49. }
  50. },
  51. "description": "This example associates a security group with the specified load balancer in a VPC.",
  52. "id": "elb-apply-security-groups-to-load-balancer-1",
  53. "title": "To associate a security group with a load balancer in a VPC"
  54. }
  55. ],
  56. "AttachLoadBalancerToSubnets": [
  57. {
  58. "input": {
  59. "LoadBalancerName": "my-load-balancer",
  60. "Subnets": [
  61. "subnet-0ecac448"
  62. ]
  63. },
  64. "output": {
  65. "Subnets": [
  66. "subnet-15aaab61",
  67. "subnet-0ecac448"
  68. ]
  69. },
  70. "comments": {
  71. "input": {
  72. },
  73. "output": {
  74. }
  75. },
  76. "description": "This example adds the specified subnet to the set of configured subnets for the specified load balancer.",
  77. "id": "elb-attach-load-balancer-to-subnets-1",
  78. "title": "To attach subnets to a load balancer"
  79. }
  80. ],
  81. "ConfigureHealthCheck": [
  82. {
  83. "input": {
  84. "HealthCheck": {
  85. "HealthyThreshold": 2,
  86. "Interval": 30,
  87. "Target": "HTTP:80/png",
  88. "Timeout": 3,
  89. "UnhealthyThreshold": 2
  90. },
  91. "LoadBalancerName": "my-load-balancer"
  92. },
  93. "output": {
  94. "HealthCheck": {
  95. "HealthyThreshold": 2,
  96. "Interval": 30,
  97. "Target": "HTTP:80/png",
  98. "Timeout": 3,
  99. "UnhealthyThreshold": 2
  100. }
  101. },
  102. "comments": {
  103. "input": {
  104. },
  105. "output": {
  106. }
  107. },
  108. "description": "This example specifies the health check settings used to evaluate the health of your backend EC2 instances.",
  109. "id": "elb-configure-health-check-1",
  110. "title": "To specify the health check settings for your backend EC2 instances"
  111. }
  112. ],
  113. "CreateAppCookieStickinessPolicy": [
  114. {
  115. "input": {
  116. "CookieName": "my-app-cookie",
  117. "LoadBalancerName": "my-load-balancer",
  118. "PolicyName": "my-app-cookie-policy"
  119. },
  120. "comments": {
  121. "input": {
  122. },
  123. "output": {
  124. }
  125. },
  126. "description": "This example generates a stickiness policy that follows the sticky session lifetimes of the application-generated cookie.",
  127. "id": "elb-create-app-cookie-stickiness-policy-1",
  128. "title": "To generate a stickiness policy for your load balancer"
  129. }
  130. ],
  131. "CreateLBCookieStickinessPolicy": [
  132. {
  133. "input": {
  134. "CookieExpirationPeriod": 60,
  135. "LoadBalancerName": "my-load-balancer",
  136. "PolicyName": "my-duration-cookie-policy"
  137. },
  138. "comments": {
  139. "input": {
  140. },
  141. "output": {
  142. }
  143. },
  144. "description": "This example generates a stickiness policy with sticky session lifetimes controlled by the specified expiration period.",
  145. "id": "elb-create-lb-cookie-stickiness-policy-1",
  146. "title": "To generate a duration-based stickiness policy for your load balancer"
  147. }
  148. ],
  149. "CreateLoadBalancer": [
  150. {
  151. "input": {
  152. "Listeners": [
  153. {
  154. "InstancePort": 80,
  155. "InstanceProtocol": "HTTP",
  156. "LoadBalancerPort": 80,
  157. "Protocol": "HTTP"
  158. }
  159. ],
  160. "LoadBalancerName": "my-load-balancer",
  161. "SecurityGroups": [
  162. "sg-a61988c3"
  163. ],
  164. "Subnets": [
  165. "subnet-15aaab61"
  166. ]
  167. },
  168. "output": {
  169. "DNSName": "my-load-balancer-1234567890.us-west-2.elb.amazonaws.com"
  170. },
  171. "comments": {
  172. "input": {
  173. },
  174. "output": {
  175. }
  176. },
  177. "description": "This example creates a load balancer with an HTTP listener in a VPC.",
  178. "id": "elb-create-load-balancer-1",
  179. "title": "To create an HTTP load balancer in a VPC"
  180. },
  181. {
  182. "input": {
  183. "AvailabilityZones": [
  184. "us-west-2a"
  185. ],
  186. "Listeners": [
  187. {
  188. "InstancePort": 80,
  189. "InstanceProtocol": "HTTP",
  190. "LoadBalancerPort": 80,
  191. "Protocol": "HTTP"
  192. }
  193. ],
  194. "LoadBalancerName": "my-load-balancer"
  195. },
  196. "output": {
  197. "DNSName": "my-load-balancer-123456789.us-west-2.elb.amazonaws.com"
  198. },
  199. "comments": {
  200. "input": {
  201. },
  202. "output": {
  203. }
  204. },
  205. "description": "This example creates a load balancer with an HTTP listener in EC2-Classic.",
  206. "id": "elb-create-load-balancer-2",
  207. "title": "To create an HTTP load balancer in EC2-Classic"
  208. },
  209. {
  210. "input": {
  211. "Listeners": [
  212. {
  213. "InstancePort": 80,
  214. "InstanceProtocol": "HTTP",
  215. "LoadBalancerPort": 80,
  216. "Protocol": "HTTP"
  217. },
  218. {
  219. "InstancePort": 80,
  220. "InstanceProtocol": "HTTP",
  221. "LoadBalancerPort": 443,
  222. "Protocol": "HTTPS",
  223. "SSLCertificateId": "arn:aws:iam::123456789012:server-certificate/my-server-cert"
  224. }
  225. ],
  226. "LoadBalancerName": "my-load-balancer",
  227. "SecurityGroups": [
  228. "sg-a61988c3"
  229. ],
  230. "Subnets": [
  231. "subnet-15aaab61"
  232. ]
  233. },
  234. "output": {
  235. "DNSName": "my-load-balancer-1234567890.us-west-2.elb.amazonaws.com"
  236. },
  237. "comments": {
  238. "input": {
  239. },
  240. "output": {
  241. }
  242. },
  243. "description": "This example creates a load balancer with an HTTPS listener in a VPC.",
  244. "id": "elb-create-load-balancer-3",
  245. "title": "To create an HTTPS load balancer in a VPC"
  246. },
  247. {
  248. "input": {
  249. "AvailabilityZones": [
  250. "us-west-2a"
  251. ],
  252. "Listeners": [
  253. {
  254. "InstancePort": 80,
  255. "InstanceProtocol": "HTTP",
  256. "LoadBalancerPort": 80,
  257. "Protocol": "HTTP"
  258. },
  259. {
  260. "InstancePort": 80,
  261. "InstanceProtocol": "HTTP",
  262. "LoadBalancerPort": 443,
  263. "Protocol": "HTTPS",
  264. "SSLCertificateId": "arn:aws:iam::123456789012:server-certificate/my-server-cert"
  265. }
  266. ],
  267. "LoadBalancerName": "my-load-balancer"
  268. },
  269. "output": {
  270. "DNSName": "my-load-balancer-123456789.us-west-2.elb.amazonaws.com"
  271. },
  272. "comments": {
  273. "input": {
  274. },
  275. "output": {
  276. }
  277. },
  278. "description": "This example creates a load balancer with an HTTPS listener in EC2-Classic.",
  279. "id": "elb-create-load-balancer-4",
  280. "title": "To create an HTTPS load balancer in EC2-Classic"
  281. },
  282. {
  283. "input": {
  284. "Listeners": [
  285. {
  286. "InstancePort": 80,
  287. "InstanceProtocol": "HTTP",
  288. "LoadBalancerPort": 80,
  289. "Protocol": "HTTP"
  290. }
  291. ],
  292. "LoadBalancerName": "my-load-balancer",
  293. "Scheme": "internal",
  294. "SecurityGroups": [
  295. "sg-a61988c3"
  296. ],
  297. "Subnets": [
  298. "subnet-15aaab61"
  299. ]
  300. },
  301. "output": {
  302. "DNSName": "internal-my-load-balancer-123456789.us-west-2.elb.amazonaws.com"
  303. },
  304. "comments": {
  305. "input": {
  306. },
  307. "output": {
  308. }
  309. },
  310. "description": "This example creates an internal load balancer with an HTTP listener in a VPC.",
  311. "id": "elb-create-load-balancer-5",
  312. "title": "To create an internal load balancer"
  313. }
  314. ],
  315. "CreateLoadBalancerListeners": [
  316. {
  317. "input": {
  318. "Listeners": [
  319. {
  320. "InstancePort": 80,
  321. "InstanceProtocol": "HTTP",
  322. "LoadBalancerPort": 80,
  323. "Protocol": "HTTP"
  324. }
  325. ],
  326. "LoadBalancerName": "my-load-balancer"
  327. },
  328. "comments": {
  329. "input": {
  330. },
  331. "output": {
  332. }
  333. },
  334. "description": "This example creates a listener for your load balancer at port 80 using the HTTP protocol.",
  335. "id": "elb-create-load-balancer-listeners-1",
  336. "title": "To create an HTTP listener for a load balancer"
  337. },
  338. {
  339. "input": {
  340. "Listeners": [
  341. {
  342. "InstancePort": 80,
  343. "InstanceProtocol": "HTTP",
  344. "LoadBalancerPort": 443,
  345. "Protocol": "HTTPS",
  346. "SSLCertificateId": "arn:aws:iam::123456789012:server-certificate/my-server-cert"
  347. }
  348. ],
  349. "LoadBalancerName": "my-load-balancer"
  350. },
  351. "comments": {
  352. "input": {
  353. },
  354. "output": {
  355. }
  356. },
  357. "description": "This example creates a listener for your load balancer at port 443 using the HTTPS protocol.",
  358. "id": "elb-create-load-balancer-listeners-2",
  359. "title": "To create an HTTPS listener for a load balancer"
  360. }
  361. ],
  362. "CreateLoadBalancerPolicy": [
  363. {
  364. "input": {
  365. "LoadBalancerName": "my-load-balancer",
  366. "PolicyAttributes": [
  367. {
  368. "AttributeName": "ProxyProtocol",
  369. "AttributeValue": "true"
  370. }
  371. ],
  372. "PolicyName": "my-ProxyProtocol-policy",
  373. "PolicyTypeName": "ProxyProtocolPolicyType"
  374. },
  375. "comments": {
  376. "input": {
  377. },
  378. "output": {
  379. }
  380. },
  381. "description": "This example creates a policy that enables Proxy Protocol on the specified load balancer.",
  382. "id": "elb-create-load-balancer-policy-1",
  383. "title": "To create a policy that enables Proxy Protocol on a load balancer"
  384. },
  385. {
  386. "input": {
  387. "LoadBalancerName": "my-load-balancer",
  388. "PolicyAttributes": [
  389. {
  390. "AttributeName": "PublicKey",
  391. "AttributeValue": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwAYUjnfyEyXr1pxjhFWBpMlggUcqoi3kl+dS74kj//c6x7ROtusUaeQCTgIUkayttRDWchuqo1pHC1u+n5xxXnBBe2ejbb2WRsKIQ5rXEeixsjFpFsojpSQKkzhVGI6mJVZBJDVKSHmswnwLBdofLhzvllpovBPTHe+o4haAWvDBALJU0pkSI1FecPHcs2hwxf14zHoXy1e2k36A64nXW43wtfx5qcVSIxtCEOjnYRg7RPvybaGfQ+v6Iaxb/+7J5kEvZhTFQId+bSiJImF1FSUT1W1xwzBZPUbcUkkXDj45vC2s3Z8E+Lk7a3uZhvsQHLZnrfuWjBWGWvZ/MhZYgEXAMPLE"
  392. }
  393. ],
  394. "PolicyName": "my-PublicKey-policy",
  395. "PolicyTypeName": "PublicKeyPolicyType"
  396. },
  397. "comments": {
  398. "input": {
  399. },
  400. "output": {
  401. }
  402. },
  403. "description": "This example creates a public key policy.",
  404. "id": "elb-create-load-balancer-policy-2",
  405. "title": "To create a public key policy"
  406. },
  407. {
  408. "input": {
  409. "LoadBalancerName": "my-load-balancer",
  410. "PolicyAttributes": [
  411. {
  412. "AttributeName": "PublicKeyPolicyName",
  413. "AttributeValue": "my-PublicKey-policy"
  414. }
  415. ],
  416. "PolicyName": "my-authentication-policy",
  417. "PolicyTypeName": "BackendServerAuthenticationPolicyType"
  418. },
  419. "comments": {
  420. "input": {
  421. },
  422. "output": {
  423. }
  424. },
  425. "description": "This example creates a backend server authentication policy that enables authentication on your backend instance using a public key policy.",
  426. "id": "elb-create-load-balancer-policy-3",
  427. "title": "To create a backend server authentication policy"
  428. }
  429. ],
  430. "DeleteLoadBalancer": [
  431. {
  432. "input": {
  433. "LoadBalancerName": "my-load-balancer"
  434. },
  435. "comments": {
  436. "input": {
  437. },
  438. "output": {
  439. }
  440. },
  441. "description": "This example deletes the specified load balancer.",
  442. "id": "elb-delete-load-balancer-1",
  443. "title": "To delete a load balancer"
  444. }
  445. ],
  446. "DeleteLoadBalancerListeners": [
  447. {
  448. "input": {
  449. "LoadBalancerName": "my-load-balancer",
  450. "LoadBalancerPorts": [
  451. 80
  452. ]
  453. },
  454. "comments": {
  455. "input": {
  456. },
  457. "output": {
  458. }
  459. },
  460. "description": "This example deletes the listener for the specified port from the specified load balancer.",
  461. "id": "elb-delete-load-balancer-listeners-1",
  462. "title": "To delete a listener from your load balancer"
  463. }
  464. ],
  465. "DeleteLoadBalancerPolicy": [
  466. {
  467. "input": {
  468. "LoadBalancerName": "my-load-balancer",
  469. "PolicyName": "my-duration-cookie-policy"
  470. },
  471. "comments": {
  472. "input": {
  473. },
  474. "output": {
  475. }
  476. },
  477. "description": "This example deletes the specified policy from the specified load balancer. The policy must not be enabled on any listener.",
  478. "id": "elb-delete-load-balancer-policy-1",
  479. "title": "To delete a policy from your load balancer"
  480. }
  481. ],
  482. "DeregisterInstancesFromLoadBalancer": [
  483. {
  484. "input": {
  485. "Instances": [
  486. {
  487. "InstanceId": "i-d6f6fae3"
  488. }
  489. ],
  490. "LoadBalancerName": "my-load-balancer"
  491. },
  492. "output": {
  493. "Instances": [
  494. {
  495. "InstanceId": "i-207d9717"
  496. },
  497. {
  498. "InstanceId": "i-afefb49b"
  499. }
  500. ]
  501. },
  502. "comments": {
  503. "input": {
  504. },
  505. "output": {
  506. }
  507. },
  508. "description": "This example deregisters the specified instance from the specified load balancer.",
  509. "id": "elb-deregister-instances-from-load-balancer-1",
  510. "title": "To deregister instances from a load balancer"
  511. }
  512. ],
  513. "DescribeInstanceHealth": [
  514. {
  515. "input": {
  516. "LoadBalancerName": "my-load-balancer"
  517. },
  518. "output": {
  519. "InstanceStates": [
  520. {
  521. "Description": "N/A",
  522. "InstanceId": "i-207d9717",
  523. "ReasonCode": "N/A",
  524. "State": "InService"
  525. },
  526. {
  527. "Description": "N/A",
  528. "InstanceId": "i-afefb49b",
  529. "ReasonCode": "N/A",
  530. "State": "InService"
  531. }
  532. ]
  533. },
  534. "comments": {
  535. "input": {
  536. },
  537. "output": {
  538. }
  539. },
  540. "description": "This example describes the health of the instances for the specified load balancer.",
  541. "id": "elb-describe-instance-health-1",
  542. "title": "To describe the health of the instances for a load balancer"
  543. }
  544. ],
  545. "DescribeLoadBalancerAttributes": [
  546. {
  547. "input": {
  548. "LoadBalancerName": "my-load-balancer"
  549. },
  550. "output": {
  551. "LoadBalancerAttributes": {
  552. "AccessLog": {
  553. "Enabled": false
  554. },
  555. "ConnectionDraining": {
  556. "Enabled": false,
  557. "Timeout": 300
  558. },
  559. "ConnectionSettings": {
  560. "IdleTimeout": 60
  561. },
  562. "CrossZoneLoadBalancing": {
  563. "Enabled": false
  564. }
  565. }
  566. },
  567. "comments": {
  568. "input": {
  569. },
  570. "output": {
  571. }
  572. },
  573. "description": "This example describes the attributes of the specified load balancer.",
  574. "id": "elb-describe-load-balancer-attributes-1",
  575. "title": "To describe the attributes of a load balancer"
  576. }
  577. ],
  578. "DescribeLoadBalancerPolicies": [
  579. {
  580. "input": {
  581. "LoadBalancerName": "my-load-balancer",
  582. "PolicyNames": [
  583. "my-authentication-policy"
  584. ]
  585. },
  586. "output": {
  587. "PolicyDescriptions": [
  588. {
  589. "PolicyAttributeDescriptions": [
  590. {
  591. "AttributeName": "PublicKeyPolicyName",
  592. "AttributeValue": "my-PublicKey-policy"
  593. }
  594. ],
  595. "PolicyName": "my-authentication-policy",
  596. "PolicyTypeName": "BackendServerAuthenticationPolicyType"
  597. }
  598. ]
  599. },
  600. "comments": {
  601. "input": {
  602. },
  603. "output": {
  604. }
  605. },
  606. "description": "This example describes the specified policy associated with the specified load balancer.",
  607. "id": "elb-describe-load-balancer-policies-1",
  608. "title": "To describe a policy associated with a load balancer"
  609. }
  610. ],
  611. "DescribeLoadBalancerPolicyTypes": [
  612. {
  613. "input": {
  614. "PolicyTypeNames": [
  615. "ProxyProtocolPolicyType"
  616. ]
  617. },
  618. "output": {
  619. "PolicyTypeDescriptions": [
  620. {
  621. "Description": "Policy that controls whether to include the IP address and port of the originating request for TCP messages. This policy operates on TCP listeners only.",
  622. "PolicyAttributeTypeDescriptions": [
  623. {
  624. "AttributeName": "ProxyProtocol",
  625. "AttributeType": "Boolean",
  626. "Cardinality": "ONE"
  627. }
  628. ],
  629. "PolicyTypeName": "ProxyProtocolPolicyType"
  630. }
  631. ]
  632. },
  633. "comments": {
  634. "input": {
  635. },
  636. "output": {
  637. }
  638. },
  639. "description": "This example describes the specified load balancer policy type.",
  640. "id": "elb-describe-load-balancer-policy-types-1",
  641. "title": "To describe a load balancer policy type defined by Elastic Load Balancing"
  642. }
  643. ],
  644. "DescribeLoadBalancers": [
  645. {
  646. "input": {
  647. "LoadBalancerNames": [
  648. "my-load-balancer"
  649. ]
  650. },
  651. "output": {
  652. "LoadBalancerDescriptions": [
  653. {
  654. "AvailabilityZones": [
  655. "us-west-2a"
  656. ],
  657. "BackendServerDescriptions": [
  658. {
  659. "InstancePort": 80,
  660. "PolicyNames": [
  661. "my-ProxyProtocol-policy"
  662. ]
  663. }
  664. ],
  665. "CanonicalHostedZoneName": "my-load-balancer-1234567890.us-west-2.elb.amazonaws.com",
  666. "CanonicalHostedZoneNameID": "Z3DZXE0EXAMPLE",
  667. "CreatedTime": "2015-03-19T03:24:02.650Z",
  668. "DNSName": "my-load-balancer-1234567890.us-west-2.elb.amazonaws.com",
  669. "HealthCheck": {
  670. "HealthyThreshold": 2,
  671. "Interval": 30,
  672. "Target": "HTTP:80/png",
  673. "Timeout": 3,
  674. "UnhealthyThreshold": 2
  675. },
  676. "Instances": [
  677. {
  678. "InstanceId": "i-207d9717"
  679. },
  680. {
  681. "InstanceId": "i-afefb49b"
  682. }
  683. ],
  684. "ListenerDescriptions": [
  685. {
  686. "Listener": {
  687. "InstancePort": 80,
  688. "InstanceProtocol": "HTTP",
  689. "LoadBalancerPort": 80,
  690. "Protocol": "HTTP"
  691. },
  692. "PolicyNames": [
  693. ]
  694. },
  695. {
  696. "Listener": {
  697. "InstancePort": 443,
  698. "InstanceProtocol": "HTTPS",
  699. "LoadBalancerPort": 443,
  700. "Protocol": "HTTPS",
  701. "SSLCertificateId": "arn:aws:iam::123456789012:server-certificate/my-server-cert"
  702. },
  703. "PolicyNames": [
  704. "ELBSecurityPolicy-2015-03"
  705. ]
  706. }
  707. ],
  708. "LoadBalancerName": "my-load-balancer",
  709. "Policies": {
  710. "AppCookieStickinessPolicies": [
  711. ],
  712. "LBCookieStickinessPolicies": [
  713. {
  714. "CookieExpirationPeriod": 60,
  715. "PolicyName": "my-duration-cookie-policy"
  716. }
  717. ],
  718. "OtherPolicies": [
  719. "my-PublicKey-policy",
  720. "my-authentication-policy",
  721. "my-SSLNegotiation-policy",
  722. "my-ProxyProtocol-policy",
  723. "ELBSecurityPolicy-2015-03"
  724. ]
  725. },
  726. "Scheme": "internet-facing",
  727. "SecurityGroups": [
  728. "sg-a61988c3"
  729. ],
  730. "SourceSecurityGroup": {
  731. "GroupName": "my-elb-sg",
  732. "OwnerAlias": "123456789012"
  733. },
  734. "Subnets": [
  735. "subnet-15aaab61"
  736. ],
  737. "VPCId": "vpc-a01106c2"
  738. }
  739. ]
  740. },
  741. "comments": {
  742. "input": {
  743. },
  744. "output": {
  745. }
  746. },
  747. "description": "This example describes the specified load balancer.",
  748. "id": "elb-describe-load-balancers-1",
  749. "title": "To describe one of your load balancers"
  750. }
  751. ],
  752. "DescribeTags": [
  753. {
  754. "input": {
  755. "LoadBalancerNames": [
  756. "my-load-balancer"
  757. ]
  758. },
  759. "output": {
  760. "TagDescriptions": [
  761. {
  762. "LoadBalancerName": "my-load-balancer",
  763. "Tags": [
  764. {
  765. "Key": "project",
  766. "Value": "lima"
  767. },
  768. {
  769. "Key": "department",
  770. "Value": "digital-media"
  771. }
  772. ]
  773. }
  774. ]
  775. },
  776. "comments": {
  777. "input": {
  778. },
  779. "output": {
  780. }
  781. },
  782. "description": "This example describes the tags for the specified load balancer.",
  783. "id": "elb-describe-tags-1",
  784. "title": "To describe the tags for a load balancer"
  785. }
  786. ],
  787. "DetachLoadBalancerFromSubnets": [
  788. {
  789. "input": {
  790. "LoadBalancerName": "my-load-balancer",
  791. "Subnets": [
  792. "subnet-0ecac448"
  793. ]
  794. },
  795. "output": {
  796. "Subnets": [
  797. "subnet-15aaab61"
  798. ]
  799. },
  800. "comments": {
  801. "input": {
  802. },
  803. "output": {
  804. }
  805. },
  806. "description": "This example detaches the specified load balancer from the specified subnet.",
  807. "id": "elb-detach-load-balancer-from-subnets-1",
  808. "title": "To detach a load balancer from a subnet"
  809. }
  810. ],
  811. "DisableAvailabilityZonesForLoadBalancer": [
  812. {
  813. "input": {
  814. "AvailabilityZones": [
  815. "us-west-2a"
  816. ],
  817. "LoadBalancerName": "my-load-balancer"
  818. },
  819. "output": {
  820. "AvailabilityZones": [
  821. "us-west-2b"
  822. ]
  823. },
  824. "comments": {
  825. "input": {
  826. },
  827. "output": {
  828. }
  829. },
  830. "description": "This example removes the specified Availability Zone from the set of Availability Zones for the specified load balancer.",
  831. "id": "elb-disable-availability-zones-for-load-balancer-1",
  832. "title": "To disable an Availability Zone for a load balancer"
  833. }
  834. ],
  835. "EnableAvailabilityZonesForLoadBalancer": [
  836. {
  837. "input": {
  838. "AvailabilityZones": [
  839. "us-west-2b"
  840. ],
  841. "LoadBalancerName": "my-load-balancer"
  842. },
  843. "output": {
  844. "AvailabilityZones": [
  845. "us-west-2a",
  846. "us-west-2b"
  847. ]
  848. },
  849. "comments": {
  850. "input": {
  851. },
  852. "output": {
  853. }
  854. },
  855. "description": "This example adds the specified Availability Zone to the specified load balancer.",
  856. "id": "elb-enable-availability-zones-for-load-balancer-1",
  857. "title": "To enable an Availability Zone for a load balancer"
  858. }
  859. ],
  860. "ModifyLoadBalancerAttributes": [
  861. {
  862. "input": {
  863. "LoadBalancerAttributes": {
  864. "CrossZoneLoadBalancing": {
  865. "Enabled": true
  866. }
  867. },
  868. "LoadBalancerName": "my-load-balancer"
  869. },
  870. "output": {
  871. "LoadBalancerAttributes": {
  872. "CrossZoneLoadBalancing": {
  873. "Enabled": true
  874. }
  875. },
  876. "LoadBalancerName": "my-load-balancer"
  877. },
  878. "comments": {
  879. "input": {
  880. },
  881. "output": {
  882. }
  883. },
  884. "description": "This example enables cross-zone load balancing for the specified load balancer.",
  885. "id": "elb-modify-load-balancer-attributes-1",
  886. "title": "To enable cross-zone load balancing"
  887. },
  888. {
  889. "input": {
  890. "LoadBalancerAttributes": {
  891. "ConnectionDraining": {
  892. "Enabled": true,
  893. "Timeout": 300
  894. }
  895. },
  896. "LoadBalancerName": "my-load-balancer"
  897. },
  898. "output": {
  899. "LoadBalancerAttributes": {
  900. "ConnectionDraining": {
  901. "Enabled": true,
  902. "Timeout": 300
  903. }
  904. },
  905. "LoadBalancerName": "my-load-balancer"
  906. },
  907. "comments": {
  908. "input": {
  909. },
  910. "output": {
  911. }
  912. },
  913. "description": "This example enables connection draining for the specified load balancer.",
  914. "id": "elb-modify-load-balancer-attributes-2",
  915. "title": "To enable connection draining"
  916. }
  917. ],
  918. "RegisterInstancesWithLoadBalancer": [
  919. {
  920. "input": {
  921. "Instances": [
  922. {
  923. "InstanceId": "i-d6f6fae3"
  924. }
  925. ],
  926. "LoadBalancerName": "my-load-balancer"
  927. },
  928. "output": {
  929. "Instances": [
  930. {
  931. "InstanceId": "i-d6f6fae3"
  932. },
  933. {
  934. "InstanceId": "i-207d9717"
  935. },
  936. {
  937. "InstanceId": "i-afefb49b"
  938. }
  939. ]
  940. },
  941. "comments": {
  942. "input": {
  943. },
  944. "output": {
  945. }
  946. },
  947. "description": "This example registers the specified instance with the specified load balancer.",
  948. "id": "elb-register-instances-with-load-balancer-1",
  949. "title": "To register instances with a load balancer"
  950. }
  951. ],
  952. "RemoveTags": [
  953. {
  954. "input": {
  955. "LoadBalancerNames": [
  956. "my-load-balancer"
  957. ],
  958. "Tags": [
  959. {
  960. "Key": "project"
  961. }
  962. ]
  963. },
  964. "comments": {
  965. "input": {
  966. },
  967. "output": {
  968. }
  969. },
  970. "description": "This example removes the specified tag from the specified load balancer.",
  971. "id": "elb-remove-tags-1",
  972. "title": "To remove tags from a load balancer"
  973. }
  974. ],
  975. "SetLoadBalancerListenerSSLCertificate": [
  976. {
  977. "input": {
  978. "LoadBalancerName": "my-load-balancer",
  979. "LoadBalancerPort": 443,
  980. "SSLCertificateId": "arn:aws:iam::123456789012:server-certificate/new-server-cert"
  981. },
  982. "comments": {
  983. "input": {
  984. },
  985. "output": {
  986. }
  987. },
  988. "description": "This example replaces the existing SSL certificate for the specified HTTPS listener.",
  989. "id": "elb-set-load-balancer-listener-ssl-certificate-1",
  990. "title": "To update the SSL certificate for an HTTPS listener"
  991. }
  992. ],
  993. "SetLoadBalancerPoliciesForBackendServer": [
  994. {
  995. "input": {
  996. "InstancePort": 80,
  997. "LoadBalancerName": "my-load-balancer",
  998. "PolicyNames": [
  999. "my-ProxyProtocol-policy"
  1000. ]
  1001. },
  1002. "comments": {
  1003. "input": {
  1004. },
  1005. "output": {
  1006. }
  1007. },
  1008. "description": "This example replaces the policies that are currently associated with the specified port.",
  1009. "id": "elb-set-load-balancer-policies-for-backend-server-1",
  1010. "title": "To replace the policies associated with a port for a backend instance"
  1011. }
  1012. ],
  1013. "SetLoadBalancerPoliciesOfListener": [
  1014. {
  1015. "input": {
  1016. "LoadBalancerName": "my-load-balancer",
  1017. "LoadBalancerPort": 80,
  1018. "PolicyNames": [
  1019. "my-SSLNegotiation-policy"
  1020. ]
  1021. },
  1022. "comments": {
  1023. "input": {
  1024. },
  1025. "output": {
  1026. }
  1027. },
  1028. "description": "This example replaces the policies that are currently associated with the specified listener.",
  1029. "id": "elb-set-load-balancer-policies-of-listener-1",
  1030. "title": "To replace the policies associated with a listener"
  1031. }
  1032. ]
  1033. }
  1034. }