Interface IBaseServiceProps
Complete base service properties that are required to be supplied by the implementation of the BaseService class.
Inherited Members
Namespace: Amazon.CDK.AWS.ECS
Assembly: Amazon.CDK.AWS.ECS.dll
Syntax (csharp)
public interface IBaseServiceProps : IBaseServiceOptions
Syntax (vb)
Public Interface IBaseServiceProps
Inherits IBaseServiceOptions
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;
using Amazon.CDK.AWS.ServiceDiscovery;
using Amazon.CDK;
Cluster cluster;
ContainerDefinition containerDefinition;
INamespace namespace;
var baseServiceProps = new BaseServiceProps {
Cluster = cluster,
LaunchType = LaunchType.EC2,
// the properties below are optional
CapacityProviderStrategies = new [] { new CapacityProviderStrategy {
CapacityProvider = "capacityProvider",
// the properties below are optional
Base = 123,
Weight = 123
} },
CircuitBreaker = new DeploymentCircuitBreaker {
Rollback = false
},
CloudMapOptions = new CloudMapOptions {
CloudMapNamespace = namespace,
Container = containerDefinition,
ContainerPort = 123,
DnsRecordType = DnsRecordType.A,
DnsTtl = Duration.Minutes(30),
FailureThreshold = 123,
Name = "name"
},
DeploymentController = new DeploymentController {
Type = DeploymentControllerType.ECS
},
DesiredCount = 123,
EnableECSManagedTags = false,
EnableExecuteCommand = false,
HealthCheckGracePeriod = Duration.Minutes(30),
MaxHealthyPercent = 123,
MinHealthyPercent = 123,
PropagateTags = PropagatedTagSource.SERVICE,
PropagateTaskTagsFrom = PropagatedTagSource.SERVICE,
ServiceName = "serviceName"
};
Synopsis
Properties
LaunchType | The launch type on which to run your service. |
Properties
LaunchType
The launch type on which to run your service.
LaunchType LaunchType { get; }
Property Value
Remarks
LaunchType will be omitted if capacity provider strategies are specified on the service.
Valid values are: LaunchType.ECS or LaunchType.FARGATE or LaunchType.EXTERNAL