Advertisement
Guest User

Untitled

a guest
Jun 25th, 2016
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. svc := autoscaling.New(session.New())
  2.  
  3. params := &autoscaling.SetInstanceHealthInput{
  4. HealthStatus: aws.String("XmlStringMaxLen32"), // Required
  5. InstanceId: aws.String("XmlStringMaxLen19"), // Required
  6. ShouldRespectGracePeriod: aws.Bool(true),
  7. }
  8. resp, err := svc.SetInstanceHealth(params)
  9.  
  10. if err != nil {
  11. // Print the error, cast err to awserr.Error to get the Code and
  12. // Message from an error.
  13. fmt.Println(err.Error())
  14. return
  15. }
  16.  
  17. // Pretty-print the response data.
  18. fmt.Println(resp)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement