Class: AWSCDK::ServiceCatalog::CfnCloudFormationProduct::SourceConnectionProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
service_catalog/cfn_cloud_formation_product.rb

Overview

A top level ProductViewDetail response containing details about the product’s connection.

AWS Service Catalog returns this field for the CreateProduct , UpdateProduct , DescribeProductAsAdmin , and SearchProductAsAdmin APIs. This response contains the same fields as the ConnectionParameters request, with the addition of the LastSync response.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(connection_parameters:, type:) ⇒ SourceConnectionProperty

Returns a new instance of SourceConnectionProperty.

Parameters:



876
877
878
879
880
881
# File 'service_catalog/cfn_cloud_formation_product.rb', line 876

def initialize(connection_parameters:, type:)
  @connection_parameters = connection_parameters.is_a?(Hash) ? ::AWSCDK::ServiceCatalog::CfnCloudFormationProduct::ConnectionParametersProperty.new(**connection_parameters.transform_keys(&:to_sym)) : connection_parameters
  Jsii::Type.check_type(@connection_parameters, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zZXJ2aWNlY2F0YWxvZy5DZm5DbG91ZEZvcm1hdGlvblByb2R1Y3QuQ29ubmVjdGlvblBhcmFtZXRlcnNQcm9wZXJ0eSJ9XX19")), "connectionParameters")
  @type = type
  Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type")
end

Instance Attribute Details

#typeString (readonly)

The only supported SourceConnection type is Codestar.



892
893
894
# File 'service_catalog/cfn_cloud_formation_product.rb', line 892

def type
  @type
end

Class Method Details

.jsii_propertiesObject



894
895
896
897
898
899
# File 'service_catalog/cfn_cloud_formation_product.rb', line 894

def self.jsii_properties
  {
    :connection_parameters => "connectionParameters",
    :type => "type",
  }
end

Instance Method Details

#to_jsiiObject



901
902
903
904
905
906
907
908
# File 'service_catalog/cfn_cloud_formation_product.rb', line 901

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