Class IpInstanceProps
Inheritance
Namespace: Amazon.CDK.AWS.ServiceDiscovery
Assembly: Amazon.CDK.AWS.ServiceDiscovery.dll
Syntax (csharp)
public class IpInstanceProps : Object, IIpInstanceProps, IIpInstanceBaseProps, IBaseInstanceProps
Syntax (vb)
Public Class IpInstanceProps
Inherits Object
Implements IIpInstanceProps, IIpInstanceBaseProps, IBaseInstanceProps
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ServiceDiscovery;
Service service;
var ipInstanceProps = new IpInstanceProps {
Service = service,
// the properties below are optional
CustomAttributes = new Dictionary<string, string> {
{ "customAttributesKey", "customAttributes" }
},
InstanceId = "instanceId",
Ipv4 = "ipv4",
Ipv6 = "ipv6",
Port = 123
};
Synopsis
Constructors
IpInstanceProps() |
Properties
CustomAttributes | Custom attributes of the instance. |
InstanceId | The id of the instance resource. |
Ipv4 | If the service that you specify contains a template for an A record, the IPv4 address that you want AWS Cloud Map to use for the value of the A record. |
Ipv6 | If the service that you specify contains a template for an AAAA record, the IPv6 address that you want AWS Cloud Map to use for the value of the AAAA record. |
Port | The port on the endpoint that you want AWS Cloud Map to perform health checks on. |
Service | The Cloudmap service this resource is registered to. |
Constructors
IpInstanceProps()
public IpInstanceProps()
Properties
CustomAttributes
Custom attributes of the instance.
public IDictionary<string, string> CustomAttributes { get; set; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.String>
Remarks
Default: none
InstanceId
The id of the instance resource.
public string InstanceId { get; set; }
Property Value
System.String
Remarks
Default: Automatically generated name
Ipv4
If the service that you specify contains a template for an A record, the IPv4 address that you want AWS Cloud Map to use for the value of the A record.
public string Ipv4 { get; set; }
Property Value
System.String
Remarks
Default: none
Ipv6
If the service that you specify contains a template for an AAAA record, the IPv6 address that you want AWS Cloud Map to use for the value of the AAAA record.
public string Ipv6 { get; set; }
Property Value
System.String
Remarks
Default: none
Port
The port on the endpoint that you want AWS Cloud Map to perform health checks on.
public Nullable<double> Port { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
This value is also used for the port value in an SRV record if the service that you specify includes an SRV record. You can also specify a default port that is applied to all instances in the Service configuration.
Default: 80
Service
The Cloudmap service this resource is registered to.
public IService Service { get; set; }
Property Value