Class: AWSCDK::IoTSiteWise::CfnGateway::GatewayPlatformProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
io_t_site_wise/cfn_gateway.rb

Overview

The gateway's platform configuration. You can only specify one platform type in a gateway.

(Legacy only) For Greengrass V1 gateways, specify the greengrass parameter with a valid Greengrass group ARN.

For Greengrass V2 gateways, specify the greengrass_v2 parameter with a valid core device thing name. If creating a V3 gateway ( gatewayVersion=3 ), you must also specify the core_device_operating_system .

For Siemens Industrial Edge gateways, specify the siemens_ie parameter with a valid IoT Core thing name.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(greengrass: nil, greengrass_v2: nil, siemens_ie: nil) ⇒ GatewayPlatformProperty

Returns a new instance of GatewayPlatformProperty.

Parameters:



640
641
642
643
644
645
646
647
# File 'io_t_site_wise/cfn_gateway.rb', line 640

def initialize(greengrass: nil, greengrass_v2: nil, siemens_ie: nil)
  @greengrass = greengrass.is_a?(Hash) ? ::AWSCDK::IoTSiteWise::CfnGateway::GreengrassProperty.new(**greengrass.transform_keys(&:to_sym)) : greengrass
  Jsii::Type.check_type(@greengrass, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19pb3RzaXRld2lzZS5DZm5HYXRld2F5LkdyZWVuZ3Jhc3NQcm9wZXJ0eSJ9XX19")), "greengrass") unless @greengrass.nil?
  @greengrass_v2 = greengrass_v2.is_a?(Hash) ? ::AWSCDK::IoTSiteWise::CfnGateway::GreengrassV2Property.new(**greengrass_v2.transform_keys(&:to_sym)) : greengrass_v2
  Jsii::Type.check_type(@greengrass_v2, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19pb3RzaXRld2lzZS5DZm5HYXRld2F5LkdyZWVuZ3Jhc3NWMlByb3BlcnR5In1dfX0=")), "greengrassV2") unless @greengrass_v2.nil?
  @siemens_ie = siemens_ie.is_a?(Hash) ? ::AWSCDK::IoTSiteWise::CfnGateway::SiemensIEProperty.new(**siemens_ie.transform_keys(&:to_sym)) : siemens_ie
  Jsii::Type.check_type(@siemens_ie, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19pb3RzaXRld2lzZS5DZm5HYXRld2F5LlNpZW1lbnNJRVByb3BlcnR5In1dfX0=")), "siemensIe") unless @siemens_ie.nil?
end

Instance Attribute Details

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

A gateway that runs on AWS IoT Greengrass V2 .



656
657
658
# File 'io_t_site_wise/cfn_gateway.rb', line 656

def greengrass_v2
  @greengrass_v2
end

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

An AWS IoT SiteWise Edge gateway that runs on a Siemens Industrial Edge Device.



661
662
663
# File 'io_t_site_wise/cfn_gateway.rb', line 661

def siemens_ie
  @siemens_ie
end

Class Method Details

.jsii_propertiesObject



663
664
665
666
667
668
669
# File 'io_t_site_wise/cfn_gateway.rb', line 663

def self.jsii_properties
  {
    :greengrass => "greengrass",
    :greengrass_v2 => "greengrassV2",
    :siemens_ie => "siemensIe",
  }
end

Instance Method Details

#to_jsiiObject



671
672
673
674
675
676
677
678
679
# File 'io_t_site_wise/cfn_gateway.rb', line 671

def to_jsii
  result = {}
  result.merge!({
    "greengrass" => @greengrass,
    "greengrassV2" => @greengrass_v2,
    "siemensIe" => @siemens_ie,
  })
  result.compact
end