Interface IApplicationLoadBalancedFargateServiceProps
The properties for the ApplicationLoadBalancedFargateService service.
Inherited Members
Namespace: Amazon.CDK.AWS.ECS.Patterns
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IApplicationLoadBalancedFargateServiceProps : IApplicationLoadBalancedServiceBaseProps, IFargateServiceBaseProps
Syntax (vb)
Public Interface IApplicationLoadBalancedFargateServiceProps
Inherits IApplicationLoadBalancedServiceBaseProps, IFargateServiceBaseProps
Remarks
ExampleMetadata: infused
Examples
Cluster cluster;
var loadBalancedFargateService = new ApplicationLoadBalancedFargateService(this, "Service", new ApplicationLoadBalancedFargateServiceProps {
Cluster = cluster,
MemoryLimitMiB = 1024,
DesiredCount = 1,
Cpu = 512,
TaskImageOptions = new ApplicationLoadBalancedTaskImageOptions {
Image = ContainerImage.FromRegistry("amazon/amazon-ecs-sample")
},
TaskSubnets = new SubnetSelection {
Subnets = new [] { Subnet.FromSubnetId(this, "subnet", "VpcISOLATEDSubnet1Subnet80F07FA0") }
},
LoadBalancerName = "application-lb-name"
});
Synopsis
Properties
AssignPublicIp | Determines whether the service will be assigned a public IP address. |
HealthCheck | The health check command and associated configuration parameters for the container. |
SecurityGroups | The security groups to associate with the service. |
TaskSubnets | The subnets to associate with the service. |
Properties
AssignPublicIp
Determines whether the service will be assigned a public IP address.
virtual Nullable<bool> AssignPublicIp { get; }
Property Value
System.Nullable<System.Boolean>
Remarks
Default: false
HealthCheck
The health check command and associated configuration parameters for the container.
virtual IHealthCheck HealthCheck { get; }
Property Value
Remarks
Default: - Health check configuration from container.
SecurityGroups
The security groups to associate with the service.
virtual ISecurityGroup[] SecurityGroups { get; }
Property Value
Remarks
If you do not specify a security group, a new security group is created.
Default: - A new security group is created.
TaskSubnets
The subnets to associate with the service.
virtual ISubnetSelection TaskSubnets { get; }
Property Value
Remarks
Default: - Public subnets if assignPublicIp
is set, otherwise the first available one of Private, Isolated, Public, in that order.