Class: AWSCDK::Greengrassv2::CfnDeployment::DeploymentIoTJobConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
greengrassv2/cfn_deployment.rb

Overview

Contains information about an AWS IoT job configuration.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(abort_config: nil, job_executions_rollout_config: nil, timeout_config: nil) ⇒ DeploymentIoTJobConfigurationProperty

Returns a new instance of DeploymentIoTJobConfigurationProperty.

Parameters:



891
892
893
894
895
896
897
898
# File 'greengrassv2/cfn_deployment.rb', line 891

def initialize(abort_config: nil, job_executions_rollout_config: nil, timeout_config: nil)
  @abort_config = abort_config.is_a?(Hash) ? ::AWSCDK::Greengrassv2::CfnDeployment::IoTJobAbortConfigProperty.new(**abort_config.transform_keys(&:to_sym)) : abort_config
  Jsii::Type.check_type(@abort_config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19ncmVlbmdyYXNzdjIuQ2ZuRGVwbG95bWVudC5Jb1RKb2JBYm9ydENvbmZpZ1Byb3BlcnR5In1dfX0=")), "abortConfig") unless @abort_config.nil?
  @job_executions_rollout_config = job_executions_rollout_config.is_a?(Hash) ? ::AWSCDK::Greengrassv2::CfnDeployment::IoTJobExecutionsRolloutConfigProperty.new(**job_executions_rollout_config.transform_keys(&:to_sym)) : job_executions_rollout_config
  Jsii::Type.check_type(@job_executions_rollout_config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19ncmVlbmdyYXNzdjIuQ2ZuRGVwbG95bWVudC5Jb1RKb2JFeGVjdXRpb25zUm9sbG91dENvbmZpZ1Byb3BlcnR5In1dfX0=")), "jobExecutionsRolloutConfig") unless @job_executions_rollout_config.nil?
  @timeout_config = timeout_config.is_a?(Hash) ? ::AWSCDK::Greengrassv2::CfnDeployment::IoTJobTimeoutConfigProperty.new(**timeout_config.transform_keys(&:to_sym)) : timeout_config
  Jsii::Type.check_type(@timeout_config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19ncmVlbmdyYXNzdjIuQ2ZuRGVwbG95bWVudC5Jb1RKb2JUaW1lb3V0Q29uZmlnUHJvcGVydHkifV19fQ==")), "timeoutConfig") unless @timeout_config.nil?
end

Instance Attribute Details

#abort_configAWSCDK::IResolvable, ... (readonly)

The stop configuration for the job.

This configuration defines when and how to stop a job rollout.



906
907
908
# File 'greengrassv2/cfn_deployment.rb', line 906

def abort_config
  @abort_config
end

#job_executions_rollout_configAWSCDK::IResolvable, ... (readonly)

The rollout configuration for the job.

This configuration defines the rate at which the job rolls out to the fleet of target devices.



913
914
915
# File 'greengrassv2/cfn_deployment.rb', line 913

def job_executions_rollout_config
  @job_executions_rollout_config
end

#timeout_configAWSCDK::IResolvable, ... (readonly)

The timeout configuration for the job.

This configuration defines the amount of time each device has to complete the job.



920
921
922
# File 'greengrassv2/cfn_deployment.rb', line 920

def timeout_config
  @timeout_config
end

Class Method Details

.jsii_propertiesObject



922
923
924
925
926
927
928
# File 'greengrassv2/cfn_deployment.rb', line 922

def self.jsii_properties
  {
    :abort_config => "abortConfig",
    :job_executions_rollout_config => "jobExecutionsRolloutConfig",
    :timeout_config => "timeoutConfig",
  }
end

Instance Method Details

#to_jsiiObject



930
931
932
933
934
935
936
937
938
# File 'greengrassv2/cfn_deployment.rb', line 930

def to_jsii
  result = {}
  result.merge!({
    "abortConfig" => @abort_config,
    "jobExecutionsRolloutConfig" => @job_executions_rollout_config,
    "timeoutConfig" => @timeout_config,
  })
  result.compact
end