CfnDeploymentPropsMixin
- class aws_cdk.mixins_preview.aws_greengrassv2.mixins.CfnDeploymentPropsMixin(props, *, strategy=None)
Bases:
MixinCreates a continuous deployment for a target, which is a AWS IoT Greengrass core device or group of core devices.
When you add a new core device to a group of core devices that has a deployment, AWS IoT Greengrass deploys that group’s deployment to the new device.
You can define one deployment for each target. When you create a new deployment for a target that has an existing deployment, you replace the previous deployment. AWS IoT Greengrass applies the new deployment to the target devices.
You can only add, update, or delete up to 10 deployments at a time to a single target.
Every deployment has a revision number that indicates how many deployment revisions you define for a target. Use this operation to create a new revision of an existing deployment. This operation returns the revision number of the new deployment when you create it.
For more information, see the Create deployments in the AWS IoT Greengrass V2 Developer Guide . .. epigraph:
Deployment resources are deleted when you delete stacks. To keep the deployments in a stack, you must specify ``"DeletionPolicy": "Retain"`` on each deployment resource in the stack template that you want to keep. For more information, see `DeletionPolicy <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html>`_ . You can only delete up to 10 deployment resources at a time. If you delete more than 10 resources, you receive an error.
- See:
- CloudformationResource:
AWS::GreengrassV2::Deployment
- Mixin:
true
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview import mixins from aws_cdk.mixins_preview.aws_greengrassv2 import mixins as greengrassv2_mixins # rate_increase_criteria: Any cfn_deployment_props_mixin = greengrassv2_mixins.CfnDeploymentPropsMixin(greengrassv2_mixins.CfnDeploymentMixinProps( components={ "components_key": greengrassv2_mixins.CfnDeploymentPropsMixin.ComponentDeploymentSpecificationProperty( component_version="componentVersion", configuration_update=greengrassv2_mixins.CfnDeploymentPropsMixin.ComponentConfigurationUpdateProperty( merge="merge", reset=["reset"] ), run_with=greengrassv2_mixins.CfnDeploymentPropsMixin.ComponentRunWithProperty( posix_user="posixUser", system_resource_limits=greengrassv2_mixins.CfnDeploymentPropsMixin.SystemResourceLimitsProperty( cpus=123, memory=123 ), windows_user="windowsUser" ) ) }, deployment_name="deploymentName", deployment_policies=greengrassv2_mixins.CfnDeploymentPropsMixin.DeploymentPoliciesProperty( component_update_policy=greengrassv2_mixins.CfnDeploymentPropsMixin.DeploymentComponentUpdatePolicyProperty( action="action", timeout_in_seconds=123 ), configuration_validation_policy=greengrassv2_mixins.CfnDeploymentPropsMixin.DeploymentConfigurationValidationPolicyProperty( timeout_in_seconds=123 ), failure_handling_policy="failureHandlingPolicy" ), iot_job_configuration=greengrassv2_mixins.CfnDeploymentPropsMixin.DeploymentIoTJobConfigurationProperty( abort_config=greengrassv2_mixins.CfnDeploymentPropsMixin.IoTJobAbortConfigProperty( criteria_list=[greengrassv2_mixins.CfnDeploymentPropsMixin.IoTJobAbortCriteriaProperty( action="action", failure_type="failureType", min_number_of_executed_things=123, threshold_percentage=123 )] ), job_executions_rollout_config=greengrassv2_mixins.CfnDeploymentPropsMixin.IoTJobExecutionsRolloutConfigProperty( exponential_rate=greengrassv2_mixins.CfnDeploymentPropsMixin.IoTJobExponentialRolloutRateProperty( base_rate_per_minute=123, increment_factor=123, rate_increase_criteria=rate_increase_criteria ), maximum_per_minute=123 ), timeout_config=greengrassv2_mixins.CfnDeploymentPropsMixin.IoTJobTimeoutConfigProperty( in_progress_timeout_in_minutes=123 ) ), parent_target_arn="parentTargetArn", tags={ "tags_key": "tags" }, target_arn="targetArn" ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::GreengrassV2::Deployment.- Parameters:
props (
Union[CfnDeploymentMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[PropertyMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.MERGE
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['components', 'deploymentName', 'deploymentPolicies', 'iotJobConfiguration', 'parentTargetArn', 'tags', 'targetArn']
Static Methods
- classmethod is_mixin(x)
(experimental) Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.- Stability:
experimental
ComponentConfigurationUpdateProperty
- class CfnDeploymentPropsMixin.ComponentConfigurationUpdateProperty(*, merge=None, reset=None)
Bases:
objectContains information about a deployment’s update to a component’s configuration on AWS IoT Greengrass core devices.
For more information, see Update component configurations in the AWS IoT Greengrass V2 Developer Guide .
- Parameters:
merge (
Optional[str]) – A serialized JSON string that contains the configuration object to merge to target devices. The core device merges this configuration with the component’s existing configuration. If this is the first time a component deploys on a device, the core device merges this configuration with the component’s default configuration. This means that the core device keeps it’s existing configuration for keys and values that you don’t specify in this object. For more information, see Merge configuration updates in the AWS IoT Greengrass V2 Developer Guide .reset (
Optional[Sequence[str]]) – The list of configuration nodes to reset to default values on target devices. Use JSON pointers to specify each node to reset. JSON pointers start with a forward slash (/) and use forward slashes to separate the key for each level in the object. For more information, see the JSON pointer specification and Reset configuration updates in the AWS IoT Greengrass V2 Developer Guide .
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_greengrassv2 import mixins as greengrassv2_mixins component_configuration_update_property = greengrassv2_mixins.CfnDeploymentPropsMixin.ComponentConfigurationUpdateProperty( merge="merge", reset=["reset"] )
Attributes
- merge
A serialized JSON string that contains the configuration object to merge to target devices.
The core device merges this configuration with the component’s existing configuration. If this is the first time a component deploys on a device, the core device merges this configuration with the component’s default configuration. This means that the core device keeps it’s existing configuration for keys and values that you don’t specify in this object. For more information, see Merge configuration updates in the AWS IoT Greengrass V2 Developer Guide .
- reset
The list of configuration nodes to reset to default values on target devices.
Use JSON pointers to specify each node to reset. JSON pointers start with a forward slash (
/) and use forward slashes to separate the key for each level in the object. For more information, see the JSON pointer specification and Reset configuration updates in the AWS IoT Greengrass V2 Developer Guide .
ComponentDeploymentSpecificationProperty
- class CfnDeploymentPropsMixin.ComponentDeploymentSpecificationProperty(*, component_version=None, configuration_update=None, run_with=None)
Bases:
objectContains information about a component to deploy.
- Parameters:
component_version (
Optional[str]) – The version of the component.configuration_update (
Union[IResolvable,ComponentConfigurationUpdateProperty,Dict[str,Any],None]) – 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 .run_with (
Union[IResolvable,ComponentRunWithProperty,Dict[str,Any],None]) – 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 in the AWS IoT Greengrass V2 Developer Guide .
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_greengrassv2 import mixins as greengrassv2_mixins component_deployment_specification_property = greengrassv2_mixins.CfnDeploymentPropsMixin.ComponentDeploymentSpecificationProperty( component_version="componentVersion", configuration_update=greengrassv2_mixins.CfnDeploymentPropsMixin.ComponentConfigurationUpdateProperty( merge="merge", reset=["reset"] ), run_with=greengrassv2_mixins.CfnDeploymentPropsMixin.ComponentRunWithProperty( posix_user="posixUser", system_resource_limits=greengrassv2_mixins.CfnDeploymentPropsMixin.SystemResourceLimitsProperty( cpus=123, memory=123 ), windows_user="windowsUser" ) )
Attributes
- component_version
The version of the component.
- configuration_update
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 .
- run_with
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 in the AWS IoT Greengrass V2 Developer Guide .
ComponentRunWithProperty
- class CfnDeploymentPropsMixin.ComponentRunWithProperty(*, posix_user=None, system_resource_limits=None, windows_user=None)
Bases:
objectContains information system user and group that the AWS IoT Greengrass Core software uses to run component processes on the core device.
For more information, see Configure the user and group that run components in the AWS IoT Greengrass V2 Developer Guide .
- Parameters:
posix_user (
Optional[str]) – The POSIX system user and (optional) group to use to run this component. Specify the user and group separated by a colon (:) in the following format:user:group. The group is optional. If you don’t specify a group, the AWS IoT Greengrass Core software uses the primary user for the group.system_resource_limits (
Union[IResolvable,SystemResourceLimitsProperty,Dict[str,Any],None]) – The system resource limits to apply to this component’s process on the core device. AWS IoT Greengrass supports this feature only on Linux core devices. If you omit this parameter, the AWS IoT Greengrass Core software uses the default system resource limits that you configure on the AWS IoT Greengrass nucleus component. For more information, see Configure system resource limits for components .windows_user (
Optional[str]) –The Windows user to use to run this component on Windows core devices. The user must exist on each Windows core device, and its name and password must be in the LocalSystem account’s Credentials Manager instance. If you omit this parameter, the AWS IoT Greengrass Core software uses the default Windows user that you configure on the AWS IoT Greengrass nucleus component. For more information, see Configure the user and group that run components .
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_greengrassv2 import mixins as greengrassv2_mixins component_run_with_property = greengrassv2_mixins.CfnDeploymentPropsMixin.ComponentRunWithProperty( posix_user="posixUser", system_resource_limits=greengrassv2_mixins.CfnDeploymentPropsMixin.SystemResourceLimitsProperty( cpus=123, memory=123 ), windows_user="windowsUser" )
Attributes
- posix_user
The POSIX system user and (optional) group to use to run this component.
Specify the user and group separated by a colon (
:) in the following format:user:group. The group is optional. If you don’t specify a group, the AWS IoT Greengrass Core software uses the primary user for the group.
- system_resource_limits
The system resource limits to apply to this component’s process on the core device.
AWS IoT Greengrass supports this feature only on Linux core devices.
If you omit this parameter, the AWS IoT Greengrass Core software uses the default system resource limits that you configure on the AWS IoT Greengrass nucleus component. For more information, see Configure system resource limits for components .
- windows_user
The Windows user to use to run this component on Windows core devices.
The user must exist on each Windows core device, and its name and password must be in the LocalSystem account’s Credentials Manager instance.
If you omit this parameter, the AWS IoT Greengrass Core software uses the default Windows user that you configure on the AWS IoT Greengrass nucleus component. For more information, see Configure the user and group that run components .
DeploymentComponentUpdatePolicyProperty
- class CfnDeploymentPropsMixin.DeploymentComponentUpdatePolicyProperty(*, action=None, timeout_in_seconds=None)
Bases:
objectContains information about a deployment’s policy that defines when components are safe to update.
Each component on a device can report whether or not it’s ready to update. After a component and its dependencies are ready, they can apply the update in the deployment. You can configure whether or not the deployment notifies components of an update and waits for a response. You specify the amount of time each component has to respond to the update notification.
- Parameters:
action (
Optional[str]) –Whether or not to notify components and wait for components to become safe to update. Choose from the following options: -
NOTIFY_COMPONENTS– The deployment notifies each component before it stops and updates that component. Components can use the SubscribeToComponentUpdates IPC operation to receive these notifications. Then, components can respond with the DeferComponentUpdate IPC operation. For more information, see the Create deployments in the AWS IoT Greengrass V2 Developer Guide . -SKIP_NOTIFY_COMPONENTS– The deployment doesn’t notify components or wait for them to be safe to update. Default:NOTIFY_COMPONENTStimeout_in_seconds (
Union[int,float,None]) – The amount of time in seconds that each component on a device has to report that it’s safe to update. If the component waits for longer than this timeout, then the deployment proceeds on the device. Default:60
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_greengrassv2 import mixins as greengrassv2_mixins deployment_component_update_policy_property = greengrassv2_mixins.CfnDeploymentPropsMixin.DeploymentComponentUpdatePolicyProperty( action="action", timeout_in_seconds=123 )
Attributes
- action
Whether or not to notify components and wait for components to become safe to update.
Choose from the following options:
NOTIFY_COMPONENTS– The deployment notifies each component before it stops and updates that component. Components can use the SubscribeToComponentUpdates IPC operation to receive these notifications. Then, components can respond with the DeferComponentUpdate IPC operation. For more information, see the Create deployments in the AWS IoT Greengrass V2 Developer Guide .SKIP_NOTIFY_COMPONENTS– The deployment doesn’t notify components or wait for them to be safe to update.
Default:
NOTIFY_COMPONENTS
- timeout_in_seconds
The amount of time in seconds that each component on a device has to report that it’s safe to update.
If the component waits for longer than this timeout, then the deployment proceeds on the device.
Default:
60
DeploymentConfigurationValidationPolicyProperty
- class CfnDeploymentPropsMixin.DeploymentConfigurationValidationPolicyProperty(*, timeout_in_seconds=None)
Bases:
objectContains information about how long a component on a core device can validate its configuration updates before it times out.
Components can use the SubscribeToValidateConfigurationUpdates IPC operation to receive notifications when a deployment specifies a configuration update. Then, components can respond with the SendConfigurationValidityReport IPC operation. For more information, see the Create deployments in the AWS IoT Greengrass V2 Developer Guide .
- Parameters:
timeout_in_seconds (
Union[int,float,None]) – The amount of time in seconds that a component can validate its configuration updates. If the validation time exceeds this timeout, then the deployment proceeds for the device. Default:30- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_greengrassv2 import mixins as greengrassv2_mixins deployment_configuration_validation_policy_property = greengrassv2_mixins.CfnDeploymentPropsMixin.DeploymentConfigurationValidationPolicyProperty( timeout_in_seconds=123 )
Attributes
- timeout_in_seconds
The amount of time in seconds that a component can validate its configuration updates.
If the validation time exceeds this timeout, then the deployment proceeds for the device.
Default:
30
DeploymentIoTJobConfigurationProperty
- class CfnDeploymentPropsMixin.DeploymentIoTJobConfigurationProperty(*, abort_config=None, job_executions_rollout_config=None, timeout_config=None)
Bases:
objectContains information about an AWS IoT job configuration.
- Parameters:
abort_config (
Union[IResolvable,IoTJobAbortConfigProperty,Dict[str,Any],None]) – The stop configuration for the job. This configuration defines when and how to stop a job rollout.job_executions_rollout_config (
Union[IResolvable,IoTJobExecutionsRolloutConfigProperty,Dict[str,Any],None]) – The rollout configuration for the job. This configuration defines the rate at which the job rolls out to the fleet of target devices.timeout_config (
Union[IResolvable,IoTJobTimeoutConfigProperty,Dict[str,Any],None]) – The timeout configuration for the job. This configuration defines the amount of time each device has to complete the job.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_greengrassv2 import mixins as greengrassv2_mixins # rate_increase_criteria: Any deployment_io_tJob_configuration_property = greengrassv2_mixins.CfnDeploymentPropsMixin.DeploymentIoTJobConfigurationProperty( abort_config=greengrassv2_mixins.CfnDeploymentPropsMixin.IoTJobAbortConfigProperty( criteria_list=[greengrassv2_mixins.CfnDeploymentPropsMixin.IoTJobAbortCriteriaProperty( action="action", failure_type="failureType", min_number_of_executed_things=123, threshold_percentage=123 )] ), job_executions_rollout_config=greengrassv2_mixins.CfnDeploymentPropsMixin.IoTJobExecutionsRolloutConfigProperty( exponential_rate=greengrassv2_mixins.CfnDeploymentPropsMixin.IoTJobExponentialRolloutRateProperty( base_rate_per_minute=123, increment_factor=123, rate_increase_criteria=rate_increase_criteria ), maximum_per_minute=123 ), timeout_config=greengrassv2_mixins.CfnDeploymentPropsMixin.IoTJobTimeoutConfigProperty( in_progress_timeout_in_minutes=123 ) )
Attributes
- abort_config
The stop configuration for the job.
This configuration defines when and how to stop a job rollout.
- job_executions_rollout_config
The rollout configuration for the job.
This configuration defines the rate at which the job rolls out to the fleet of target devices.
- timeout_config
The timeout configuration for the job.
This configuration defines the amount of time each device has to complete the job.
DeploymentPoliciesProperty
- class CfnDeploymentPropsMixin.DeploymentPoliciesProperty(*, component_update_policy=None, configuration_validation_policy=None, failure_handling_policy=None)
Bases:
objectContains information about policies that define how a deployment updates components and handles failure.
- Parameters:
component_update_policy (
Union[IResolvable,DeploymentComponentUpdatePolicyProperty,Dict[str,Any],None]) – The component update policy for the configuration deployment. This policy defines when it’s safe to deploy the configuration to devices.configuration_validation_policy (
Union[IResolvable,DeploymentConfigurationValidationPolicyProperty,Dict[str,Any],None]) – The configuration validation policy for the configuration deployment. This policy defines how long each component has to validate its configure updates.failure_handling_policy (
Optional[str]) – The failure handling policy for the configuration deployment. This policy defines what to do if the deployment fails. Default:ROLLBACK
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_greengrassv2 import mixins as greengrassv2_mixins deployment_policies_property = greengrassv2_mixins.CfnDeploymentPropsMixin.DeploymentPoliciesProperty( component_update_policy=greengrassv2_mixins.CfnDeploymentPropsMixin.DeploymentComponentUpdatePolicyProperty( action="action", timeout_in_seconds=123 ), configuration_validation_policy=greengrassv2_mixins.CfnDeploymentPropsMixin.DeploymentConfigurationValidationPolicyProperty( timeout_in_seconds=123 ), failure_handling_policy="failureHandlingPolicy" )
Attributes
- component_update_policy
The component update policy for the configuration deployment.
This policy defines when it’s safe to deploy the configuration to devices.
- configuration_validation_policy
The configuration validation policy for the configuration deployment.
This policy defines how long each component has to validate its configure updates.
- failure_handling_policy
The failure handling policy for the configuration deployment. This policy defines what to do if the deployment fails.
Default:
ROLLBACK
IoTJobAbortConfigProperty
- class CfnDeploymentPropsMixin.IoTJobAbortConfigProperty(*, criteria_list=None)
Bases:
objectContains a list of criteria that define when and how to cancel a configuration deployment.
- Parameters:
criteria_list (
Union[IResolvable,Sequence[Union[IResolvable,IoTJobAbortCriteriaProperty,Dict[str,Any]]],None]) – The list of criteria that define when and how to cancel the configuration deployment.- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_greengrassv2 import mixins as greengrassv2_mixins io_tJob_abort_config_property = greengrassv2_mixins.CfnDeploymentPropsMixin.IoTJobAbortConfigProperty( criteria_list=[greengrassv2_mixins.CfnDeploymentPropsMixin.IoTJobAbortCriteriaProperty( action="action", failure_type="failureType", min_number_of_executed_things=123, threshold_percentage=123 )] )
Attributes
- criteria_list
The list of criteria that define when and how to cancel the configuration deployment.
IoTJobAbortCriteriaProperty
- class CfnDeploymentPropsMixin.IoTJobAbortCriteriaProperty(*, action=None, failure_type=None, min_number_of_executed_things=None, threshold_percentage=None)
Bases:
objectContains criteria that define when and how to cancel a job.
The deployment stops if the following conditions are true:
The number of things that receive the deployment exceeds the
minNumberOfExecutedThings.The percentage of failures with type
failureTypeexceeds thethresholdPercentage.
- Parameters:
action (
Optional[str]) – The action to perform when the criteria are met.failure_type (
Optional[str]) – The type of job deployment failure that can cancel a job.min_number_of_executed_things (
Union[int,float,None]) – The minimum number of things that receive the configuration before the job can cancel.threshold_percentage (
Union[int,float,None]) – The minimum percentage offailureTypefailures that occur before the job can cancel. This parameter supports up to two digits after the decimal (for example, you can specify10.9or10.99, but not10.999).
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_greengrassv2 import mixins as greengrassv2_mixins io_tJob_abort_criteria_property = greengrassv2_mixins.CfnDeploymentPropsMixin.IoTJobAbortCriteriaProperty( action="action", failure_type="failureType", min_number_of_executed_things=123, threshold_percentage=123 )
Attributes
- action
The action to perform when the criteria are met.
- failure_type
The type of job deployment failure that can cancel a job.
- min_number_of_executed_things
The minimum number of things that receive the configuration before the job can cancel.
- threshold_percentage
The minimum percentage of
failureTypefailures that occur before the job can cancel.This parameter supports up to two digits after the decimal (for example, you can specify
10.9or10.99, but not10.999).
IoTJobExecutionsRolloutConfigProperty
- class CfnDeploymentPropsMixin.IoTJobExecutionsRolloutConfigProperty(*, exponential_rate=None, maximum_per_minute=None)
Bases:
objectContains information about the rollout configuration for a job.
This configuration defines the rate at which the job deploys a configuration to a fleet of target devices.
- Parameters:
exponential_rate (
Union[IResolvable,IoTJobExponentialRolloutRateProperty,Dict[str,Any],None]) – The exponential rate to increase the job rollout rate.maximum_per_minute (
Union[int,float,None]) – The maximum number of devices that receive a pending job notification, per minute.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_greengrassv2 import mixins as greengrassv2_mixins # rate_increase_criteria: Any io_tJob_executions_rollout_config_property = greengrassv2_mixins.CfnDeploymentPropsMixin.IoTJobExecutionsRolloutConfigProperty( exponential_rate=greengrassv2_mixins.CfnDeploymentPropsMixin.IoTJobExponentialRolloutRateProperty( base_rate_per_minute=123, increment_factor=123, rate_increase_criteria=rate_increase_criteria ), maximum_per_minute=123 )
Attributes
- exponential_rate
The exponential rate to increase the job rollout rate.
- maximum_per_minute
The maximum number of devices that receive a pending job notification, per minute.
IoTJobExponentialRolloutRateProperty
- class CfnDeploymentPropsMixin.IoTJobExponentialRolloutRateProperty(*, base_rate_per_minute=None, increment_factor=None, rate_increase_criteria=None)
Bases:
objectContains information about an exponential rollout rate for a configuration deployment job.
- Parameters:
base_rate_per_minute (
Union[int,float,None]) – The minimum number of devices that receive a pending job notification, per minute, when the job starts. This parameter defines the initial rollout rate of the job.increment_factor (
Union[int,float,None]) – The exponential factor to increase the rollout rate for the job. This parameter supports up to one digit after the decimal (for example, you can specify1.5, but not1.55).rate_increase_criteria (
Any) – The criteria to increase the rollout rate for the job.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_greengrassv2 import mixins as greengrassv2_mixins # rate_increase_criteria: Any io_tJob_exponential_rollout_rate_property = greengrassv2_mixins.CfnDeploymentPropsMixin.IoTJobExponentialRolloutRateProperty( base_rate_per_minute=123, increment_factor=123, rate_increase_criteria=rate_increase_criteria )
Attributes
- base_rate_per_minute
The minimum number of devices that receive a pending job notification, per minute, when the job starts.
This parameter defines the initial rollout rate of the job.
- increment_factor
The exponential factor to increase the rollout rate for the job.
This parameter supports up to one digit after the decimal (for example, you can specify
1.5, but not1.55).
- rate_increase_criteria
The criteria to increase the rollout rate for the job.
IoTJobTimeoutConfigProperty
- class CfnDeploymentPropsMixin.IoTJobTimeoutConfigProperty(*, in_progress_timeout_in_minutes=None)
Bases:
objectContains information about the timeout configuration for a job.
- Parameters:
in_progress_timeout_in_minutes (
Union[int,float,None]) – The amount of time, in minutes, that devices have to complete the job. The timer starts when the job status is set toIN_PROGRESS. If the job status doesn’t change to a terminal state before the time expires, then the job status is set toTIMED_OUT. The timeout interval must be between 1 minute and 7 days (10080 minutes).- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_greengrassv2 import mixins as greengrassv2_mixins io_tJob_timeout_config_property = greengrassv2_mixins.CfnDeploymentPropsMixin.IoTJobTimeoutConfigProperty( in_progress_timeout_in_minutes=123 )
Attributes
- in_progress_timeout_in_minutes
The amount of time, in minutes, that devices have to complete the job.
The timer starts when the job status is set to
IN_PROGRESS. If the job status doesn’t change to a terminal state before the time expires, then the job status is set toTIMED_OUT.The timeout interval must be between 1 minute and 7 days (10080 minutes).
SystemResourceLimitsProperty
- class CfnDeploymentPropsMixin.SystemResourceLimitsProperty(*, cpus=None, memory=None)
Bases:
objectContains information about system resource limits that the software applies to a component’s processes.
- Parameters:
cpus (
Union[int,float,None]) – 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.memory (
Union[int,float,None]) –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 .
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_greengrassv2 import mixins as greengrassv2_mixins system_resource_limits_property = greengrassv2_mixins.CfnDeploymentPropsMixin.SystemResourceLimitsProperty( cpus=123, memory=123 )
Attributes
- cpus
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.
- memory
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 .