Interface INetworkLoadBalancedFargateServiceProps
The properties for the NetworkLoadBalancedFargateService service.
Inherited Members
Namespace: Amazon.CDK.AWS.ECS.Patterns
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface INetworkLoadBalancedFargateServiceProps : INetworkLoadBalancedServiceBaseProps, IFargateServiceBaseProps
Syntax (vb)
Public Interface INetworkLoadBalancedFargateServiceProps
Inherits INetworkLoadBalancedServiceBaseProps, IFargateServiceBaseProps
Remarks
ExampleMetadata: infused
Examples
Vpc vpc;
SecurityGroup securityGroup;
var queueProcessingFargateService = new NetworkLoadBalancedFargateService(this, "Service", new NetworkLoadBalancedFargateServiceProps {
Vpc = vpc,
MemoryLimitMiB = 512,
TaskImageOptions = new NetworkLoadBalancedTaskImageOptions {
Image = ContainerImage.FromRegistry("amazon/amazon-ecs-sample")
},
SecurityGroups = new [] { securityGroup }
});
Synopsis
Properties
AssignPublicIp | Determines whether the service will be assigned a public IP address. |
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
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.