Class Ec2ServiceAttributes
The properties to import from the service using the EC2 launch type.
Inheritance
System.Object
Ec2ServiceAttributes
Implements
Namespace: Amazon.CDK.AWS.ECS
Assembly: Amazon.CDK.AWS.ECS.dll
Syntax (csharp)
public class Ec2ServiceAttributes : Object, IEc2ServiceAttributes
Syntax (vb)
Public Class Ec2ServiceAttributes
Inherits Object
Implements IEc2ServiceAttributes
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.ECS;
Cluster cluster;
var ec2ServiceAttributes = new Ec2ServiceAttributes {
Cluster = cluster,
// the properties below are optional
ServiceArn = "serviceArn",
ServiceName = "serviceName"
};
Synopsis
Constructors
Ec2ServiceAttributes() |
Properties
Cluster | The cluster that hosts the service. |
ServiceArn | The service ARN. |
ServiceName | The name of the service. |
Constructors
Ec2ServiceAttributes()
public Ec2ServiceAttributes()
Properties
Cluster
ServiceArn
The service ARN.
public string ServiceArn { get; set; }
Property Value
System.String
Remarks
Default: - either this, or {@link serviceName}, is required
ServiceName
The name of the service.
public string ServiceName { get; set; }
Property Value
System.String
Remarks
Default: - either this, or {@link serviceArn}, is required