ServiceAttributes

class aws_cdk.aws_servicediscovery.ServiceAttributes(*, dns_record_type, namespace, routing_policy, service_arn, service_id, service_name, discovery_type=None)

Bases: object

Parameters:
ExampleMetadata:

fixture=_generated

Example:

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

# namespace: servicediscovery.INamespace

service_attributes = servicediscovery.ServiceAttributes(
    dns_record_type=servicediscovery.DnsRecordType.A,
    namespace=namespace,
    routing_policy=servicediscovery.RoutingPolicy.WEIGHTED,
    service_arn="serviceArn",
    service_id="serviceId",
    service_name="serviceName",

    # the properties below are optional
    discovery_type=servicediscovery.DiscoveryType.API
)

Attributes

discovery_type
dns_record_type
namespace
routing_policy
service_arn
service_id
service_name