CfnServiceNetworkServiceAssociationProps Struct
Properties for defining a CfnServiceNetworkServiceAssociation.
| 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 cfnServiceNetworkServiceAssociationProps: vpclattice.CfnServiceNetworkServiceAssociationProps = {
dnsEntry: {
domainName: 'domainName',
hostedZoneId: 'hostedZoneId',
},
serviceIdentifier: 'serviceIdentifier',
serviceNetworkIdentifier: 'serviceNetworkIdentifier',
tags: [{
key: 'key',
value: 'value',
}],
};
python
from aws_cdk import CfnTag
# 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
cfn_service_network_service_association_props = vpclattice.CfnServiceNetworkServiceAssociationProps(
dns_entry=vpclattice.CfnServiceNetworkServiceAssociation.DnsEntryProperty(
domain_name="domainName",
hosted_zone_id="hostedZoneId"
),
service_identifier="serviceIdentifier",
service_network_identifier="serviceNetworkIdentifier",
tags=[CfnTag(
key="key",
value="value"
)]
)
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.*;
CfnServiceNetworkServiceAssociationProps cfnServiceNetworkServiceAssociationProps = CfnServiceNetworkServiceAssociationProps.builder()
.dnsEntry(DnsEntryProperty.builder()
.domainName("domainName")
.hostedZoneId("hostedZoneId")
.build())
.serviceIdentifier("serviceIdentifier")
.serviceNetworkIdentifier("serviceNetworkIdentifier")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.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 cfnServiceNetworkServiceAssociationProps = new CfnServiceNetworkServiceAssociationProps {
DnsEntry = new DnsEntryProperty {
DomainName = "domainName",
HostedZoneId = "hostedZoneId"
},
ServiceIdentifier = "serviceIdentifier",
ServiceNetworkIdentifier = "serviceNetworkIdentifier",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
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"
cfnServiceNetworkServiceAssociationProps := &CfnServiceNetworkServiceAssociationProps{
DnsEntry: &DnsEntryProperty{
DomainName: jsii.String("domainName"),
HostedZoneId: jsii.String("hostedZoneId"),
},
ServiceIdentifier: jsii.String("serviceIdentifier"),
ServiceNetworkIdentifier: jsii.String("serviceNetworkIdentifier"),
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
}
Properties
dnsEntryoptionalIResolvable | CfnServiceNetworkServiceAssociation.dns_entryoptionaltyping.Union[IResolvable, DnsEntryProperty]dnsEntryoptionalIResolvableDnsEntryoptionalIResolvableDnsEntryoptionalinterface{} #The DNS information of the service.
serviceIdentifieroptionalstringservice_identifieroptionalstrserviceIdentifieroptionalStringServiceIdentifieroptionalstringServiceIdentifieroptional*string #The ID or ARN of the service.
serviceNetworkIdentifieroptionalstringservice_network_identifieroptionalstrserviceNetworkIdentifieroptionalStringServiceNetworkIdentifieroptionalstringServiceNetworkIdentifieroptional*string #The ID or ARN of the service network.
You must use an ARN if the resources are in different accounts.