

This is the new *Amazon CloudFormation Template Reference Guide*. Please update your bookmarks and links. For help getting started with CloudFormation, see the [Amazon CloudFormation User Guide](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/Welcome.html).

# AWS::Route53::HealthCheckSource

Creates a health check source, which defines the virtual private cloud (VPC), subnets, and security groups from which Route 53 sends private endpoint health check requests. To use this operation, you must have the `route53:CreateHealthCheckSource` permission. You must also have permission to create a service-linked role.

Specify a VPC, one subnet in each Availability Zone that Route 53 uses for private endpoint health checks in the Amazon Web Services Region, and one or more security groups for each subnet. The security groups must allow outbound traffic to the endpoints that you want to check.

Route 53 creates a health check source asynchronously, and the initial `HealthCheckSourceStatus` is `CREATE_PENDING`. Call `GetHealthCheckSource` until the status is `CREATE_COMPLETED` before you create health checks that use the source. You can't change the configuration of a health check source after you create it.

If AWS Identity and Access Management (IAM) is still deleting the Route 53 service-linked role for your account, the request fails with `InvalidInput`. Retry after the deletion completes.

## Syntax
<a name="aws-resource-route53-healthchecksource-syntax"></a>

To declare this entity in your Amazon CloudFormation template, use the following syntax:

### JSON
<a name="aws-resource-route53-healthchecksource-syntax.json"></a>

```json
{
  "Type" : "AWS::Route53::HealthCheckSource",
  "Properties" : {
      "[HealthCheckSourceConfig](#cfn-route53-healthchecksource-healthchecksourceconfig)" : {{HealthCheckSourceConfig}},
      "[Tags](#cfn-route53-healthchecksource-tags)" : {{[ Tag, ... ]}}
    }
}
```

### YAML
<a name="aws-resource-route53-healthchecksource-syntax.yaml"></a>

```yaml
Type: AWS::Route53::HealthCheckSource
Properties:
  [HealthCheckSourceConfig](#cfn-route53-healthchecksource-healthchecksourceconfig): {{
    HealthCheckSourceConfig}}
  [Tags](#cfn-route53-healthchecksource-tags): {{
    - Tag}}
```

## Properties
<a name="aws-resource-route53-healthchecksource-properties"></a>

`HealthCheckSourceConfig`  <a name="cfn-route53-healthchecksource-healthchecksourceconfig"></a>
The virtual private cloud (VPC), subnets, and security groups for the health check source.  
*Required*: Yes  
*Type*: [HealthCheckSourceConfig](aws-properties-route53-healthchecksource-healthchecksourceconfig.md)  
*Update requires*: [Replacement](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

`Tags`  <a name="cfn-route53-healthchecksource-tags"></a>
A complex type that contains a list of the tags that you want to apply to the health check source when you create it.  
*Required*: No  
*Type*: Array of [Tag](aws-properties-route53-healthchecksource-tag.md)  
*Maximum*: `50`  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

## Return values
<a name="aws-resource-route53-healthchecksource-return-values"></a>

### Ref
<a name="aws-resource-route53-healthchecksource-return-values-ref"></a>

### Fn::GetAtt
<a name="aws-resource-route53-healthchecksource-return-values-fn--getatt"></a>

#### 
<a name="aws-resource-route53-healthchecksource-return-values-fn--getatt-fn--getatt"></a>

`Arn`  <a name="Arn-fn::getatt"></a>
Property description not available.

`HealthCheckSourceId`  <a name="HealthCheckSourceId-fn::getatt"></a>
The ID of the health check source. Route 53 assigns this ID when it creates the source.

`HealthCheckSourceStatus`  <a name="HealthCheckSourceStatus-fn::getatt"></a>
The current status of the health check source. The health check source status can have one of the following values:  
+ `CREATE_PENDING` - Route 53 accepted the request to create the source and hasn't started creating it. You can't use the source in a health check until its status is `CREATE_COMPLETED`.
+ `CREATE_IN_PROGRESS` - Route 53 is creating the source. You can't use the source in a health check until its status is `CREATE_COMPLETED`.
+ `CREATE_COMPLETED` - The source is ready to use.
+ `CREATE_FAILED` - Route 53 couldn't create the source. `StatusReasonCode` and `StatusReason` explain why.
+ `DELETE_PENDING` - Route 53 accepted the request to delete the source and hasn't started deleting it.
+ `DELETE_IN_PROGRESS` - Route 53 is deleting the source.
+ `DELETE_COMPLETED` - Route 53 has deleted the source. You can't retrieve a health check source in this status: `GetHealthCheckSource` returns `NoSuchHealthCheckSource`.
+ `DELETE_FAILED` - Route 53 couldn't delete the source. `StatusReasonCode` and `StatusReason` explain why.
If the status is `CREATE_FAILED`, fix the cause that `StatusReasonCode` indicates, and then either retry `CreateHealthCheckSource` with the same `CallerReference` and settings, or delete the source and create a new one. If the status is `DELETE_FAILED`, retry the `DeleteHealthCheckSource` request.