# ComponentDeploymentSpecificationProperty

Contains information about a component to deploy.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
    }
};
```

Golang:

```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

- `componentVersion`: string — The version of the component.

- `configurationUpdate`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDeployment.ComponentConfigurationUpdateProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_greengrassv2.CfnDeployment.ComponentConfigurationUpdateProperty.html) — The configuration updates to deploy for the component.

  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](https://docs.aws.amazon.com/greengrass/v2/developerguide/update-component-configurations.html) .

- `runWith`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDeployment.ComponentRunWithProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_greengrassv2.CfnDeployment.ComponentRunWithProperty.html) — The system user and group that the software uses to run component processes on the core device.

  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](https://docs.aws.amazon.com/greengrass/v2/developerguide/configure-greengrass-core-v2.html#configure-component-user) in the *AWS IoT Greengrass V2 Developer Guide* .
