Ejemplo n.º 1
0
        public void AutoScalingCreateOrUpdateTags()
        {
            #region autoscaling-create-or-update-tags-1

            var client   = new AmazonAutoScalingClient();
            var response = client.CreateOrUpdateTags(new CreateOrUpdateTagsRequest
            {
                Tags = new List <Tag> {
                    new Tag {
                        Key = "Role",
                        PropagateAtLaunch = true,
                        ResourceId        = "my-auto-scaling-group",
                        ResourceType      = "auto-scaling-group",
                        Value             = "WebServer"
                    },
                    new Tag {
                        Key = "Dept",
                        PropagateAtLaunch = true,
                        ResourceId        = "my-auto-scaling-group",
                        ResourceType      = "auto-scaling-group",
                        Value             = "Research"
                    }
                }
            });


            #endregion
        }