Class CpuArchitecture
The CpuArchitecture for Fargate Runtime Platform.
Inheritance
System.Object
CpuArchitecture
Namespace: Amazon.CDK.AWS.ECS
Assembly: Amazon.CDK.AWS.ECS.dll
Syntax (csharp)
public class CpuArchitecture : DeputyBase
Syntax (vb)
Public Class CpuArchitecture
Inherits DeputyBase
Remarks
ExampleMetadata: infused
Examples
// Create a Task Definition for the Windows container to start
var taskDefinition = new FargateTaskDefinition(this, "TaskDef", new FargateTaskDefinitionProps {
RuntimePlatform = new RuntimePlatform {
OperatingSystemFamily = OperatingSystemFamily.WINDOWS_SERVER_2019_CORE,
CpuArchitecture = CpuArchitecture.X86_64
},
Cpu = 1024,
MemoryLimitMiB = 2048
});
taskDefinition.AddContainer("windowsservercore", new ContainerDefinitionOptions {
Logging = LogDriver.AwsLogs(new AwsLogDriverProps { StreamPrefix = "win-iis-on-fargate" }),
PortMappings = new [] { new PortMapping { ContainerPort = 80 } },
Image = ContainerImage.FromRegistry("mcr.microsoft.com/windows/servercore/iis:windowsservercore-ltsc2019")
});
Synopsis
Constructors
CpuArchitecture(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CpuArchitecture(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
ARM64 | ARM64. |
X86_64 | X86_64. |
Methods
Of(String) | Other cpu architecture. |
Constructors
CpuArchitecture(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CpuArchitecture(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CpuArchitecture(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CpuArchitecture(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
ARM64
X86_64
Methods
Of(String)
Other cpu architecture.
public static CpuArchitecture Of(string cpuArchitecture)
Parameters
- cpuArchitecture System.String
cpu architecture.
Returns