IService

class aws_cdk.aws_servicediscovery.IService(*args, **kwds)

Bases: aws_cdk.core.IResource, typing_extensions.Protocol

Attributes

dns_record_type

The DnsRecordType used by the service.

Return type

DnsRecordType

env

The environment this resource belongs to.

For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.

Return type

ResourceEnvironment

namespace

The namespace for the Cloudmap Service.

Return type

INamespace

node

The construct tree node for this construct.

Return type

ConstructNode

routing_policy

The Routing Policy used by the service.

Return type

RoutingPolicy

service_arn

The Arn of the namespace that you want to use for DNS configuration.

Attribute

true

Return type

str

service_id

The ID of the namespace that you want to use for DNS configuration.

Attribute

true

Return type

str

service_name

A name for the Cloudmap Service.

Attribute

true

Return type

str

stack

The stack in which this resource is defined.

Return type

Stack