ComponentDeploymentSpecificationProperty Struct
Contains information about a component to deploy.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_greengrassv2 as greengrassv2 } from 'aws-cdk-lib';
const componentDeploymentSpecificationProperty: greengrassv2.CfnDeployment.ComponentDeploymentSpecificationProperty = {
componentVersion: 'componentVersion',
configurationUpdate: {
merge: 'merge',
reset: ['reset'],
},
runWith: {
posixUser: 'posixUser',
systemResourceLimits: {
cpus: 123,
memory: 123,
},
windowsUser: 'windowsUser',
},
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_greengrassv2 as greengrassv2
component_deployment_specification_property = greengrassv2.CfnDeployment.ComponentDeploymentSpecificationProperty(
component_version="componentVersion",
configuration_update=greengrassv2.CfnDeployment.ComponentConfigurationUpdateProperty(
merge="merge",
reset=["reset"]
),
run_with=greengrassv2.CfnDeployment.ComponentRunWithProperty(
posix_user="posixUser",
system_resource_limits=greengrassv2.CfnDeployment.SystemResourceLimitsProperty(
cpus=123,
memory=123
),
windows_user="windowsUser"
)
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.greengrassv2.*;
ComponentDeploymentSpecificationProperty componentDeploymentSpecificationProperty = ComponentDeploymentSpecificationProperty.builder()
.componentVersion("componentVersion")
.configurationUpdate(ComponentConfigurationUpdateProperty.builder()
.merge("merge")
.reset(List.of("reset"))
.build())
.runWith(ComponentRunWithProperty.builder()
.posixUser("posixUser")
.systemResourceLimits(SystemResourceLimitsProperty.builder()
.cpus(123)
.memory(123)
.build())
.windowsUser("windowsUser")
.build())
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.GreengrassV2;
var componentDeploymentSpecificationProperty = new ComponentDeploymentSpecificationProperty {
ComponentVersion = "componentVersion",
ConfigurationUpdate = new ComponentConfigurationUpdateProperty {
Merge = "merge",
Reset = new [] { "reset" }
},
RunWith = new ComponentRunWithProperty {
PosixUser = "posixUser",
SystemResourceLimits = new SystemResourceLimitsProperty {
Cpus = 123,
Memory = 123
},
WindowsUser = "windowsUser"
}
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// 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"
componentDeploymentSpecificationProperty := &ComponentDeploymentSpecificationProperty{
ComponentVersion: jsii.String("componentVersion"),
ConfigurationUpdate: &ComponentConfigurationUpdateProperty{
Merge: jsii.String("merge"),
Reset: []*string{
jsii.String("reset"),
},
},
RunWith: &ComponentRunWithProperty{
PosixUser: jsii.String("posixUser"),
SystemResourceLimits: &SystemResourceLimitsProperty{
Cpus: jsii.Number(123),
Memory: jsii.Number(123),
},
WindowsUser: jsii.String("windowsUser"),
},
}
Properties
componentVersionoptionalstringcomponent_versionoptionalstrcomponentVersionoptionalStringComponentVersionoptionalstringComponentVersionoptional*string #The version of the component.
configurationUpdateoptionalIResolvable | CfnDeployment.configuration_updateoptionaltyping.Union[IResolvable, ComponentConfigurationUpdateProperty]configurationUpdateoptionalIResolvableConfigurationUpdateoptionalIResolvableConfigurationUpdateoptionalinterface{} #The configuration updates to deploy for the component.
notes
You can define reset updates and merge updates. A reset updates the keys that you specify to the default configuration for the component. A merge updates the core device's component configuration with the keys and values that you specify. The AWS IoT Greengrass Core software applies reset updates before it applies merge updates. For more information, see Update component configuration .
runWithoptionalIResolvable | CfnDeployment.run_withoptionaltyping.Union[IResolvable, ComponentRunWithProperty]runWithoptionalIResolvableRunWithoptionalIResolvableRunWithoptionalinterface{} #The system user and group that the software uses to run component processes on the core device.
notes
If you omit this parameter, the software uses the system user and group that you configure for the core device. For more information, see Configure the user and group that run components in the AWS IoT Greengrass V2 Developer Guide .