> **Experimental**
>
> `@aws-cdk/aws-route53resolver-alpha` is an [**experimental**](https://docs.aws.amazon.com/cdk/api/stability.html) (alpha) package: its API may change in any release, without a major version bump.
# DomainsConfig

Domains configuration.

Returned by: [FirewallDomains.bind](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-route53resolver-alpha.FirewallDomains.html#bind)

- Stability: [Experimental](https://docs.aws.amazon.com/cdk/api/stability.html)
- Source: [`lib/firewall-domain-list.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/@aws-cdk/aws-route53resolver-alpha/lib/firewall-domain-list.ts#L129)

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as route53resolver_alpha from '@aws-cdk/aws-route53resolver-alpha';
const domainsConfig: route53resolver_alpha.DomainsConfig = {
  domainFileUrl: 'domainFileUrl',
  domains: ['domains'],
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_route53resolver_alpha as route53resolver_alpha

domains_config = route53resolver_alpha.DomainsConfig(
    domain_file_url="domainFileUrl",
    domains=["domains"]
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.route53resolver.alpha.*;

DomainsConfig domainsConfig = DomainsConfig.builder()
        .domainFileUrl("domainFileUrl")
        .domains(List.of("domains"))
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.AWS.Route53Resolver.Alpha
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Route53Resolver.Alpha;

var domainsConfig = new DomainsConfig {
    DomainFileUrl = "domainFileUrl",
    Domains = new [] { "domains" }
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdkroute53resolveralpha/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import route53resolver_alpha "github.com/aws/aws-cdk-go/awscdkroute53resolveralpha"

domainsConfig := &DomainsConfig{
	DomainFileUrl: jsii.String("domainFileUrl"),
	Domains: []*string{
		jsii.String("domains"),
	},
}
```

## Properties

- `domainFileUrl`: string — The fully qualified URL or URI of the file stored in Amazon S3 that contains the list of domains to import.

  **Default:** use `domains`

  The file must be a text file and must contain
  a single domain per line. The content type of the S3 object must be `plain/text`.

- `domains`: string[] — A list of domains.

  **Default:** use `domainFileUrl`
