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:
dns_record_type (
DnsRecordType
) –namespace (
INamespace
) –routing_policy (
RoutingPolicy
) –service_arn (
str
) –service_id (
str
) –service_name (
str
) –discovery_type (
Optional
[DiscoveryType
]) –
- 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