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