Class: AWSCDK::Greengrass::CfnGroup::GroupVersionProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
greengrass/cfn_group.rb

Overview

A group version in AWS IoT Greengrass , which references of a core definition version, device definition version, subscription definition version, and other version types that contain the components you want to deploy to a Greengrass core device.

The group version must reference a core definition version that contains one core. Other version types are optionally included, depending on your business need.

In an CloudFormation template, GroupVersion is the property type of the InitialVersion property in the AWS::Greengrass::Group resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(connector_definition_version_arn: nil, core_definition_version_arn: nil, device_definition_version_arn: nil, function_definition_version_arn: nil, logger_definition_version_arn: nil, resource_definition_version_arn: nil, subscription_definition_version_arn: nil) ⇒ GroupVersionProperty

Returns a new instance of GroupVersionProperty.

Parameters:

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

    The Amazon Resource Name (ARN) of the connector definition version that contains the connectors you want to deploy with the group version.

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

    The ARN of the core definition version that contains the core you want to deploy with the group version.

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

    The ARN of the device definition version that contains the devices you want to deploy with the group version.

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

    The ARN of the function definition version that contains the functions you want to deploy with the group version.

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

    The ARN of the logger definition version that contains the loggers you want to deploy with the group version.

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

    The ARN of the resource definition version that contains the resources you want to deploy with the group version.

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

    The ARN of the subscription definition version that contains the subscriptions you want to deploy with the group version.



650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
# File 'greengrass/cfn_group.rb', line 650

def initialize(connector_definition_version_arn: nil, core_definition_version_arn: nil, device_definition_version_arn: nil, function_definition_version_arn: nil, logger_definition_version_arn: nil, resource_definition_version_arn: nil, subscription_definition_version_arn: nil)
  @connector_definition_version_arn = connector_definition_version_arn
  Jsii::Type.check_type(@connector_definition_version_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "connectorDefinitionVersionArn") unless @connector_definition_version_arn.nil?
  @core_definition_version_arn = core_definition_version_arn
  Jsii::Type.check_type(@core_definition_version_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "coreDefinitionVersionArn") unless @core_definition_version_arn.nil?
  @device_definition_version_arn = device_definition_version_arn
  Jsii::Type.check_type(@device_definition_version_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "deviceDefinitionVersionArn") unless @device_definition_version_arn.nil?
  @function_definition_version_arn = function_definition_version_arn
  Jsii::Type.check_type(@function_definition_version_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "functionDefinitionVersionArn") unless @function_definition_version_arn.nil?
  @logger_definition_version_arn = logger_definition_version_arn
  Jsii::Type.check_type(@logger_definition_version_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "loggerDefinitionVersionArn") unless @logger_definition_version_arn.nil?
  @resource_definition_version_arn = resource_definition_version_arn
  Jsii::Type.check_type(@resource_definition_version_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "resourceDefinitionVersionArn") unless @resource_definition_version_arn.nil?
  @subscription_definition_version_arn = subscription_definition_version_arn
  Jsii::Type.check_type(@subscription_definition_version_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "subscriptionDefinitionVersionArn") unless @subscription_definition_version_arn.nil?
end

Instance Attribute Details

#connector_definition_version_arnString? (readonly)

The Amazon Resource Name (ARN) of the connector definition version that contains the connectors you want to deploy with the group version.



671
672
673
# File 'greengrass/cfn_group.rb', line 671

def connector_definition_version_arn
  @connector_definition_version_arn
end

#core_definition_version_arnString? (readonly)

The ARN of the core definition version that contains the core you want to deploy with the group version.

Currently, the core definition version can contain only one core.



678
679
680
# File 'greengrass/cfn_group.rb', line 678

def core_definition_version_arn
  @core_definition_version_arn
end

#device_definition_version_arnString? (readonly)

The ARN of the device definition version that contains the devices you want to deploy with the group version.



683
684
685
# File 'greengrass/cfn_group.rb', line 683

def device_definition_version_arn
  @device_definition_version_arn
end

#function_definition_version_arnString? (readonly)

The ARN of the function definition version that contains the functions you want to deploy with the group version.



688
689
690
# File 'greengrass/cfn_group.rb', line 688

def function_definition_version_arn
  @function_definition_version_arn
end

#logger_definition_version_arnString? (readonly)

The ARN of the logger definition version that contains the loggers you want to deploy with the group version.



693
694
695
# File 'greengrass/cfn_group.rb', line 693

def logger_definition_version_arn
  @logger_definition_version_arn
end

#resource_definition_version_arnString? (readonly)

The ARN of the resource definition version that contains the resources you want to deploy with the group version.



698
699
700
# File 'greengrass/cfn_group.rb', line 698

def resource_definition_version_arn
  @resource_definition_version_arn
end

#subscription_definition_version_arnString? (readonly)

The ARN of the subscription definition version that contains the subscriptions you want to deploy with the group version.



703
704
705
# File 'greengrass/cfn_group.rb', line 703

def subscription_definition_version_arn
  @subscription_definition_version_arn
end

Class Method Details

.jsii_propertiesObject



705
706
707
708
709
710
711
712
713
714
715
# File 'greengrass/cfn_group.rb', line 705

def self.jsii_properties
  {
    :connector_definition_version_arn => "connectorDefinitionVersionArn",
    :core_definition_version_arn => "coreDefinitionVersionArn",
    :device_definition_version_arn => "deviceDefinitionVersionArn",
    :function_definition_version_arn => "functionDefinitionVersionArn",
    :logger_definition_version_arn => "loggerDefinitionVersionArn",
    :resource_definition_version_arn => "resourceDefinitionVersionArn",
    :subscription_definition_version_arn => "subscriptionDefinitionVersionArn",
  }
end

Instance Method Details

#to_jsiiObject



717
718
719
720
721
722
723
724
725
726
727
728
729
# File 'greengrass/cfn_group.rb', line 717

def to_jsii
  result = {}
  result.merge!({
    "connectorDefinitionVersionArn" => @connector_definition_version_arn,
    "coreDefinitionVersionArn" => @core_definition_version_arn,
    "deviceDefinitionVersionArn" => @device_definition_version_arn,
    "functionDefinitionVersionArn" => @function_definition_version_arn,
    "loggerDefinitionVersionArn" => @logger_definition_version_arn,
    "resourceDefinitionVersionArn" => @resource_definition_version_arn,
    "subscriptionDefinitionVersionArn" => @subscription_definition_version_arn,
  })
  result.compact
end