Class: AWSCDK::Greengrassv2::CfnDeployment::ComponentConfigurationUpdateProperty

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

Overview

Contains 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 .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(merge: nil, reset: nil) ⇒ ComponentConfigurationUpdateProperty

Returns a new instance of ComponentConfigurationUpdateProperty.

Parameters:

  • merge (String, nil) (defaults to: nil)

    A serialized JSON string that contains the configuration object to merge to target devices.

  • reset (Array<String>, nil) (defaults to: nil)

    The list of configuration nodes to reset to default values on target devices.



626
627
628
629
630
631
# File 'greengrassv2/cfn_deployment.rb', line 626

def initialize(merge: nil, reset: nil)
  @merge = merge
  Jsii::Type.check_type(@merge, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "merge") unless @merge.nil?
  @reset = reset
  Jsii::Type.check_type(@reset, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "reset") unless @reset.nil?
end

Instance Attribute Details

#mergeString? (readonly)

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 .



639
640
641
# File 'greengrassv2/cfn_deployment.rb', line 639

def merge
  @merge
end

#resetArray<String>? (readonly)

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 .



646
647
648
# File 'greengrassv2/cfn_deployment.rb', line 646

def reset
  @reset
end

Class Method Details

.jsii_propertiesObject



648
649
650
651
652
653
# File 'greengrassv2/cfn_deployment.rb', line 648

def self.jsii_properties
  {
    :merge => "merge",
    :reset => "reset",
  }
end

Instance Method Details

#to_jsiiObject



655
656
657
658
659
660
661
662
# File 'greengrassv2/cfn_deployment.rb', line 655

def to_jsii
  result = {}
  result.merge!({
    "merge" => @merge,
    "reset" => @reset,
  })
  result.compact
end