aws-cdk-lib.aws_servicediscovery.ServiceAttributes

interface ServiceAttributes

LanguageType name
.NETAmazon.CDK.AWS.ServiceDiscovery.ServiceAttributes
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsservicediscovery#ServiceAttributes
Javasoftware.amazon.awscdk.services.servicediscovery.ServiceAttributes
Pythonaws_cdk.aws_servicediscovery.ServiceAttributes
TypeScript (source)aws-cdk-lib » aws_servicediscovery » ServiceAttributes

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_servicediscovery as servicediscovery } from 'aws-cdk-lib';

declare const namespace: servicediscovery.INamespace;
const serviceAttributes: servicediscovery.ServiceAttributes = {
  dnsRecordType: servicediscovery.DnsRecordType.A,
  namespace: namespace,
  routingPolicy: servicediscovery.RoutingPolicy.WEIGHTED,
  serviceArn: 'serviceArn',
  serviceId: 'serviceId',
  serviceName: 'serviceName',

  // the properties below are optional
  discoveryType: servicediscovery.DiscoveryType.API,
};

Properties

NameTypeDescription
dnsRecordTypeDnsRecordType
namespaceINamespace
routingPolicyRoutingPolicy
serviceArnstring
serviceIdstring
serviceNamestring
discoveryType?DiscoveryType

dnsRecordType

Type: DnsRecordType


namespace

Type: INamespace


routingPolicy

Type: RoutingPolicy


serviceArn

Type: string


serviceId

Type: string


serviceName

Type: string


discoveryType?

Type: DiscoveryType (optional)