Class: AWSCDK::Interfaces::AWSCodestarconnections::SyncConfigurationReference

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
interfaces/aws_codestarconnections/sync_configuration_reference.rb

Overview

A reference to a SyncConfiguration resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(resource_name:, sync_type:) ⇒ SyncConfigurationReference

Returns a new instance of SyncConfigurationReference.

Parameters:

  • resource_name (String)

    The ResourceName of the SyncConfiguration resource.

  • sync_type (String)

    The SyncType of the SyncConfiguration resource.



9
10
11
12
13
14
# File 'interfaces/aws_codestarconnections/sync_configuration_reference.rb', line 9

def initialize(resource_name:, sync_type:)
  @resource_name = resource_name
  Jsii::Type.check_type(@resource_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "resourceName")
  @sync_type = sync_type
  Jsii::Type.check_type(@sync_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "syncType")
end

Instance Attribute Details

#resource_nameString (readonly)

The ResourceName of the SyncConfiguration resource.

Returns:

  • (String)


19
20
21
# File 'interfaces/aws_codestarconnections/sync_configuration_reference.rb', line 19

def resource_name
  @resource_name
end

#sync_typeString (readonly)

The SyncType of the SyncConfiguration resource.

Returns:

  • (String)


23
24
25
# File 'interfaces/aws_codestarconnections/sync_configuration_reference.rb', line 23

def sync_type
  @sync_type
end

Class Method Details

.jsii_propertiesObject



25
26
27
28
29
30
# File 'interfaces/aws_codestarconnections/sync_configuration_reference.rb', line 25

def self.jsii_properties
  {
    :resource_name => "resourceName",
    :sync_type => "syncType",
  }
end

Instance Method Details

#to_jsiiObject



32
33
34
35
36
37
38
39
# File 'interfaces/aws_codestarconnections/sync_configuration_reference.rb', line 32

def to_jsii
  result = {}
  result.merge!({
    "resourceName" => @resource_name,
    "syncType" => @sync_type,
  })
  result.compact
end