# ResourceConfigurationDefinitionProperty

Identifies the resource configuration in one of the following ways:.

- *Amazon Resource Name (ARN)* - Supported resource-types that are provisioned by AWS services, such as RDS databases, can be identified by their ARN.
- *Domain name* - Any domain name that is publicly resolvable.
- *IP address* - For IPv4 and IPv6, only IP addresses in the VPC are supported.

- Source: Generated at build time
- Type last changed: v2.272.0 · 30 Sep 2026

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_vpclattice as vpclattice } from 'aws-cdk-lib';
const resourceConfigurationDefinitionProperty: vpclattice.CfnResourceConfiguration.ResourceConfigurationDefinitionProperty = {
  arnResource: 'arnResource',
  cidrResource: {
    cidrRanges: ['cidrRanges'],
  },
  dnsResource: {
    domainName: 'domainName',
    ipAddressType: 'ipAddressType',
  },
  ipResource: 'ipResource',
};
```

Python:

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

resource_configuration_definition_property = vpclattice.CfnResourceConfiguration.ResourceConfigurationDefinitionProperty(
    arn_resource="arnResource",
    cidr_resource=vpclattice.CfnResourceConfiguration.CidrResourceProperty(
        cidr_ranges=["cidrRanges"]
    ),
    dns_resource=vpclattice.CfnResourceConfiguration.DnsResourceProperty(
        domain_name="domainName",
        ip_address_type="ipAddressType"
    ),
    ip_resource="ipResource"
)
```

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.vpclattice.*;

ResourceConfigurationDefinitionProperty resourceConfigurationDefinitionProperty = ResourceConfigurationDefinitionProperty.builder()
        .arnResource("arnResource")
        .cidrResource(CidrResourceProperty.builder()
                .cidrRanges(List.of("cidrRanges"))
                .build())
        .dnsResource(DnsResourceProperty.builder()
                .domainName("domainName")
                .ipAddressType("ipAddressType")
                .build())
        .ipResource("ipResource")
        .build();
```

C# / .NET:

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

var resourceConfigurationDefinitionProperty = new ResourceConfigurationDefinitionProperty {
    ArnResource = "arnResource",
    CidrResource = new CidrResourceProperty {
        CidrRanges = new [] { "cidrRanges" }
    },
    DnsResource = new DnsResourceProperty {
        DomainName = "domainName",
        IpAddressType = "ipAddressType"
    },
    IpResource = "ipResource"
};
```

Golang:

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

resourceConfigurationDefinitionProperty := &ResourceConfigurationDefinitionProperty{
	ArnResource: jsii.String("arnResource"),
	CidrResource: &CidrResourceProperty{
		CidrRanges: []*string{
			jsii.String("cidrRanges"),
		},
	},
	DnsResource: &DnsResourceProperty{
		DomainName: jsii.String("domainName"),
		IpAddressType: jsii.String("ipAddressType"),
	},
	IpResource: jsii.String("ipResource"),
}
```

## Properties

- `arnResource`: string — The Amazon Resource Name (ARN) of the resource configuration.

  For the ARN syntax and format, see [ARN format](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference-arns.html#arns-syntax) in the *AWS Identity and Access Management user guide* .

- `cidrResource`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnResourceConfiguration.CidrResourceProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_vpclattice.CfnResourceConfiguration.CidrResourceProperty.html) — The CIDR ranges that make up a CIDR resource configuration.

  Only valid when ResourceConfigurationType is CIDR, and the resource gateway must have ResourceConfigDnsResolution set to IN_VPC.

- `dnsResource`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnResourceConfiguration.DnsResourceProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_vpclattice.CfnResourceConfiguration.DnsResourceProperty.html) — The DNS name of the resource configuration.

- `ipResource`: string — The IP address of the resource configuration.
