Show / Hide Table of Contents

Class Service

Define a CloudMap Service.

Inheritance
System.Object
Construct
Resource
Service
Implements
IService
IResource
IConstruct
Constructs.IConstruct
IDependable
Inherited Members
Resource.IsResource(IConstruct)
Resource.ApplyRemovalPolicy(RemovalPolicy)
Resource.GeneratePhysicalName()
Resource.GetResourceArnAttribute(String, IArnComponents)
Resource.GetResourceNameAttribute(String)
Resource.Env
Resource.PhysicalName
Resource.Stack
Construct.IsConstruct(Object)
Construct.OnPrepare()
Construct.OnSynthesize(ISynthesisSession)
Construct.OnValidate()
Construct.Prepare()
Construct.Synthesize(ISynthesisSession)
Construct.Validate()
Construct.Node
Namespace: Amazon.CDK.AWS.ServiceDiscovery
Assembly: Amazon.CDK.AWS.ServiceDiscovery.dll
Syntax (csharp)
public class Service : Resource, IService, IResource, IConstruct, IConstruct, IDependable
Syntax (vb)
Public Class Service
    Inherits Resource
    Implements IService, IResource, IConstruct, IConstruct, IDependable

Synopsis

Constructors

Service(ByRefValue)

Used by jsii to construct an instance of this class from a Javascript-owned object reference

Service(DeputyBase.DeputyProps)

Used by jsii to construct an instance of this class from DeputyProps

Service(Construct, String, IServiceProps)

Properties

DnsRecordType

The DnsRecordType used by the service.

Namespace

The namespace for the Cloudmap Service.

RoutingPolicy

The Routing Policy used by the service.

ServiceArn

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

ServiceId

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

ServiceName

A name for the Cloudmap Service.

Methods

FromServiceAttributes(Construct, String, IServiceAttributes)
RegisterCnameInstance(String, ICnameInstanceBaseProps)

Registers a resource that is accessible using a CNAME.

RegisterIpInstance(String, IIpInstanceBaseProps)

Registers a resource that is accessible using an IP address.

RegisterLoadBalancer(String, ILoadBalancerV2, IDictionary<String, String>)

Registers an ELB as a new instance with unique name instanceId in this service.

RegisterNonIpInstance(String, INonIpInstanceBaseProps)

Registers a resource that is accessible using values other than an IP address or a domain name (CNAME).

Constructors

Service(ByRefValue)

Used by jsii to construct an instance of this class from a Javascript-owned object reference

protected Service(ByRefValue reference)
Parameters
reference Amazon.JSII.Runtime.Deputy.ByRefValue

The Javascript-owned object reference

Service(DeputyBase.DeputyProps)

Used by jsii to construct an instance of this class from DeputyProps

protected Service(DeputyBase.DeputyProps props)
Parameters
props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps

The deputy props

Service(Construct, String, IServiceProps)

public Service(Construct scope, string id, IServiceProps props)
Parameters
scope Constructs.Construct
id System.String
props IServiceProps

Properties

DnsRecordType

The DnsRecordType used by the service.

public virtual DnsRecordType DnsRecordType { get; }
Property Value

DnsRecordType

Namespace

The namespace for the Cloudmap Service.

public virtual INamespace Namespace { get; }
Property Value

INamespace

RoutingPolicy

The Routing Policy used by the service.

public virtual RoutingPolicy RoutingPolicy { get; }
Property Value

RoutingPolicy

ServiceArn

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

public virtual string ServiceArn { get; }
Property Value

System.String

ServiceId

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

public virtual string ServiceId { get; }
Property Value

System.String

ServiceName

A name for the Cloudmap Service.

public virtual string ServiceName { get; }
Property Value

System.String

Methods

FromServiceAttributes(Construct, String, IServiceAttributes)

public static IService FromServiceAttributes(Construct scope, string id, IServiceAttributes attrs)
Parameters
scope Constructs.Construct
id System.String
attrs IServiceAttributes
Returns

IService

RegisterCnameInstance(String, ICnameInstanceBaseProps)

Registers a resource that is accessible using a CNAME.

public virtual IInstance RegisterCnameInstance(string id, ICnameInstanceBaseProps props)
Parameters
id System.String
props ICnameInstanceBaseProps
Returns

IInstance

RegisterIpInstance(String, IIpInstanceBaseProps)

Registers a resource that is accessible using an IP address.

public virtual IInstance RegisterIpInstance(string id, IIpInstanceBaseProps props)
Parameters
id System.String
props IIpInstanceBaseProps
Returns

IInstance

RegisterLoadBalancer(String, ILoadBalancerV2, IDictionary<String, String>)

Registers an ELB as a new instance with unique name instanceId in this service.

public virtual IInstance RegisterLoadBalancer(string id, ILoadBalancerV2 loadBalancer, IDictionary<string, string> customAttributes = null)
Parameters
id System.String
loadBalancer ILoadBalancerV2
customAttributes System.Collections.Generic.IDictionary<System.String, System.String>
Returns

IInstance

RegisterNonIpInstance(String, INonIpInstanceBaseProps)

Registers a resource that is accessible using values other than an IP address or a domain name (CNAME).

public virtual IInstance RegisterNonIpInstance(string id, INonIpInstanceBaseProps props)
Parameters
id System.String
props INonIpInstanceBaseProps
Returns

IInstance

Implements

IService
IResource
IConstruct
Constructs.IConstruct
IDependable
Back to top Generated by DocFX