ResourceConfigurationDefinitionProperty Struct
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 | |
|---|---|
| Type last changed |
Example
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
# 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
// 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();
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"
};
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
arnResourceoptionalstringarn_resourceoptionalstrarnResourceoptionalStringArnResourceoptionalstringArnResourceoptional*string #The Amazon Resource Name (ARN) of the resource configuration.
For the ARN syntax and format, see ARN format in the AWS Identity and Access Management user guide .
cidrResourceoptionalIResolvable | CfnResourceConfiguration.cidr_resourceoptionaltyping.Union[IResolvable, CidrResourceProperty]cidrResourceoptionalIResolvableCidrResourceoptionalIResolvableCidrResourceoptionalinterface{} #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.
dnsResourceoptionalIResolvable | CfnResourceConfiguration.dns_resourceoptionaltyping.Union[IResolvable, DnsResourceProperty]dnsResourceoptionalIResolvableDnsResourceoptionalIResolvableDnsResourceoptionalinterface{} #The DNS name of the resource configuration.
ipResourceoptionalstringip_resourceoptionalstripResourceoptionalStringIpResourceoptionalstringIpResourceoptional*string #The IP address of the resource configuration.