Data source for managing Amazon ARC Region Switch Route53 Health Checks.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.arcregionswitch.getRoute53HealthChecks({
planArn: "arn:aws:arc-region-switch::123456789012:plan/example-plan:abc123",
});
import pulumi
import pulumi_aws as aws
example = aws.arcregionswitch.get_route53_health_checks(plan_arn="arn:aws:arc-region-switch::123456789012:plan/example-plan:abc123")
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/arcregionswitch"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := arcregionswitch.GetRoute53HealthChecks(ctx, &arcregionswitch.GetRoute53HealthChecksArgs{
PlanArn: "arn:aws:arc-region-switch::123456789012:plan/example-plan:abc123",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = Aws.ArcRegionSwitch.GetRoute53HealthChecks.Invoke(new()
{
PlanArn = "arn:aws:arc-region-switch::123456789012:plan/example-plan:abc123",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.arcregionswitch.ArcregionswitchFunctions;
import com.pulumi.aws.arcregionswitch.inputs.GetRoute53HealthChecksArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var example = ArcregionswitchFunctions.getRoute53HealthChecks(GetRoute53HealthChecksArgs.builder()
.planArn("arn:aws:arc-region-switch::123456789012:plan/example-plan:abc123")
.build());
}
}
variables:
example:
fn::invoke:
function: aws:arcregionswitch:getRoute53HealthChecks
arguments:
planArn: arn:aws:arc-region-switch::123456789012:plan/example-plan:abc123
Using getRoute53HealthChecks
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getRoute53HealthChecks(args: GetRoute53HealthChecksArgs, opts?: InvokeOptions): Promise<GetRoute53HealthChecksResult>
function getRoute53HealthChecksOutput(args: GetRoute53HealthChecksOutputArgs, opts?: InvokeOptions): Output<GetRoute53HealthChecksResult>def get_route53_health_checks(plan_arn: Optional[str] = None,
region: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetRoute53HealthChecksResult
def get_route53_health_checks_output(plan_arn: Optional[pulumi.Input[str]] = None,
region: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetRoute53HealthChecksResult]func GetRoute53HealthChecks(ctx *Context, args *GetRoute53HealthChecksArgs, opts ...InvokeOption) (*GetRoute53HealthChecksResult, error)
func GetRoute53HealthChecksOutput(ctx *Context, args *GetRoute53HealthChecksOutputArgs, opts ...InvokeOption) GetRoute53HealthChecksResultOutput> Note: This function is named GetRoute53HealthChecks in the Go SDK.
public static class GetRoute53HealthChecks
{
public static Task<GetRoute53HealthChecksResult> InvokeAsync(GetRoute53HealthChecksArgs args, InvokeOptions? opts = null)
public static Output<GetRoute53HealthChecksResult> Invoke(GetRoute53HealthChecksInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetRoute53HealthChecksResult> getRoute53HealthChecks(GetRoute53HealthChecksArgs args, InvokeOptions options)
public static Output<GetRoute53HealthChecksResult> getRoute53HealthChecks(GetRoute53HealthChecksArgs args, InvokeOptions options)
fn::invoke:
function: aws:arcregionswitch/getRoute53HealthChecks:getRoute53HealthChecks
arguments:
# arguments dictionaryThe following arguments are supported:
getRoute53HealthChecks Result
The following output properties are available:
- Health
Checks List<GetRoute53Health Checks Health Check> - List of Route53 health checks associated with the plan. Each health check contains:
- Id string
- The provider-assigned unique ID for this managed resource.
- Plan
Arn string - Region string
- Region for the health check.
- Health
Checks []GetRoute53Health Checks Health Check - List of Route53 health checks associated with the plan. Each health check contains:
- Id string
- The provider-assigned unique ID for this managed resource.
- Plan
Arn string - Region string
- Region for the health check.
- health
Checks List<GetRoute53Health Checks Health Check> - List of Route53 health checks associated with the plan. Each health check contains:
- id String
- The provider-assigned unique ID for this managed resource.
- plan
Arn String - region String
- Region for the health check.
- health
Checks GetRoute53Health Checks Health Check[] - List of Route53 health checks associated with the plan. Each health check contains:
- id string
- The provider-assigned unique ID for this managed resource.
- plan
Arn string - region string
- Region for the health check.
- health_
checks Sequence[GetRoute53Health Checks Health Check] - List of Route53 health checks associated with the plan. Each health check contains:
- id str
- The provider-assigned unique ID for this managed resource.
- plan_
arn str - region str
- Region for the health check.
- health
Checks List<Property Map> - List of Route53 health checks associated with the plan. Each health check contains:
- id String
- The provider-assigned unique ID for this managed resource.
- plan
Arn String - region String
- Region for the health check.
Supporting Types
GetRoute53HealthChecksHealthCheck
- Health
Check stringId - ID of the Route53 health check.
- Hosted
Zone stringId - Hosted zone ID for the health check.
- Record
Name string - Record name for the health check.
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Status string
- Status of the health check. Valid values:
healthy,unhealthy,unknown.
- Health
Check stringId - ID of the Route53 health check.
- Hosted
Zone stringId - Hosted zone ID for the health check.
- Record
Name string - Record name for the health check.
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Status string
- Status of the health check. Valid values:
healthy,unhealthy,unknown.
- health
Check StringId - ID of the Route53 health check.
- hosted
Zone StringId - Hosted zone ID for the health check.
- record
Name String - Record name for the health check.
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- status String
- Status of the health check. Valid values:
healthy,unhealthy,unknown.
- health
Check stringId - ID of the Route53 health check.
- hosted
Zone stringId - Hosted zone ID for the health check.
- record
Name string - Record name for the health check.
- region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- status string
- Status of the health check. Valid values:
healthy,unhealthy,unknown.
- health_
check_ strid - ID of the Route53 health check.
- hosted_
zone_ strid - Hosted zone ID for the health check.
- record_
name str - Record name for the health check.
- region str
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- status str
- Status of the health check. Valid values:
healthy,unhealthy,unknown.
- health
Check StringId - ID of the Route53 health check.
- hosted
Zone StringId - Hosted zone ID for the health check.
- record
Name String - Record name for the health check.
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- status String
- Status of the health check. Valid values:
healthy,unhealthy,unknown.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.
