Пример #1
0
 public MyStack()
 {
     var example = new Aws.Route53.HealthCheck("example", new Aws.Route53.HealthCheckArgs
     {
         FailureThreshold = 5,
         Fqdn             = "example.com",
         Port             = 443,
         RequestInterval  = 30,
         ResourcePath     = "/",
         SearchString     = "example",
         Type             = "HTTPS_STR_MATCH",
     });
 }
Пример #2
0
 public MyStack()
 {
     var parent = new Aws.Route53.HealthCheck("parent", new Aws.Route53.HealthCheckArgs
     {
         ChildHealthThreshold = 1,
         ChildHealthchecks    =
         {
             aws_route53_health_check.Child.Id,
         },
         Tags =
         {
             { "Name", "tf-test-calculated-health-check" },
         },
         Type = "CALCULATED",
     });
 }
Пример #3
0
 public MyStack()
 {
     var example = new Aws.Route53.HealthCheck("example", new Aws.Route53.HealthCheckArgs
     {
         FailureThreshold = 5,
         Fqdn             = "example.com",
         Port             = 80,
         RequestInterval  = 30,
         ResourcePath     = "/",
         Tags             =
         {
             { "Name", "tf-test-health-check" },
         },
         Type = "HTTP",
     });
 }
Пример #4
0
 public MyStack()
 {
     var foobar = new Aws.CloudWatch.MetricAlarm("foobar", new Aws.CloudWatch.MetricAlarmArgs
     {
         AlarmDescription   = "This metric monitors ec2 cpu utilization",
         ComparisonOperator = "GreaterThanOrEqualToThreshold",
         EvaluationPeriods  = 2,
         MetricName         = "CPUUtilization",
         Namespace          = "AWS/EC2",
         Period             = 120,
         Statistic          = "Average",
         Threshold          = 80,
     });
     var foo = new Aws.Route53.HealthCheck("foo", new Aws.Route53.HealthCheckArgs
     {
         CloudwatchAlarmName          = foobar.Name,
         CloudwatchAlarmRegion        = "us-west-2",
         InsufficientDataHealthStatus = "Healthy",
         Type = "CLOUDWATCH_METRIC",
     });
 }