-
Notifications
You must be signed in to change notification settings - Fork 17
/
CfnDeployment_SystemResourceLimitsProperty.go
32 lines (29 loc) · 2.07 KB
/
CfnDeployment_SystemResourceLimitsProperty.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package awsgreengrassv2
// Contains information about system resource limits that the software applies to a component's processes.
//
// Example:
// // The code below shows an example of how to instantiate this type.
// // The values are placeholders you should change.
// import "github.com/aws/aws-cdk-go/awscdk"
//
// systemResourceLimitsProperty := &SystemResourceLimitsProperty{
// Cpus: jsii.Number(123),
// Memory: jsii.Number(123),
// }
//
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrassv2-deployment-systemresourcelimits.html
//
type CfnDeployment_SystemResourceLimitsProperty struct {
// The maximum amount of CPU time that a component's processes can use on the core device.
//
// A core device's total CPU time is equivalent to the device's number of CPU cores. For example, on a core device with 4 CPU cores, you can set this value to 2 to limit the component's processes to 50 percent usage of each CPU core. On a device with 1 CPU core, you can set this value to 0.25 to limit the component's processes to 25 percent usage of the CPU. If you set this value to a number greater than the number of CPU cores, the AWS IoT Greengrass Core software doesn't limit the component's CPU usage.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrassv2-deployment-systemresourcelimits.html#cfn-greengrassv2-deployment-systemresourcelimits-cpus
//
Cpus *float64 `field:"optional" json:"cpus" yaml:"cpus"`
// The maximum amount of RAM, expressed in kilobytes, that a component's processes can use on the core device.
//
// For more information, see [Configure system resource limits for components](https://docs.aws.amazon.com/greengrass/v2/developerguide/configure-greengrass-core-v2.html#configure-component-system-resource-limits) .
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrassv2-deployment-systemresourcelimits.html#cfn-greengrassv2-deployment-systemresourcelimits-memory
//
Memory *float64 `field:"optional" json:"memory" yaml:"memory"`
}