Class: AWSCDK::Interfaces::AWSRefactorspaces::ServiceReference

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
interfaces/aws_refactorspaces/service_reference.rb

Overview

A reference to a Service resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(application_identifier:, environment_identifier:, service_arn:, service_identifier:) ⇒ ServiceReference

Returns a new instance of ServiceReference.

Parameters:

  • application_identifier (String)

    The ApplicationIdentifier of the Service resource.

  • environment_identifier (String)

    The EnvironmentIdentifier of the Service resource.

  • service_arn (String)

    The ARN of the Service resource.

  • service_identifier (String)

    The ServiceIdentifier of the Service resource.



11
12
13
14
15
16
17
18
19
20
# File 'interfaces/aws_refactorspaces/service_reference.rb', line 11

def initialize(application_identifier:, environment_identifier:, service_arn:, service_identifier:)
  @application_identifier = application_identifier
  Jsii::Type.check_type(@application_identifier, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "applicationIdentifier")
  @environment_identifier = environment_identifier
  Jsii::Type.check_type(@environment_identifier, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "environmentIdentifier")
  @service_arn = service_arn
  Jsii::Type.check_type(@service_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "serviceArn")
  @service_identifier = service_identifier
  Jsii::Type.check_type(@service_identifier, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "serviceIdentifier")
end

Instance Attribute Details

#application_identifierString (readonly)

The ApplicationIdentifier of the Service resource.

Returns:

  • (String)


25
26
27
# File 'interfaces/aws_refactorspaces/service_reference.rb', line 25

def application_identifier
  @application_identifier
end

#environment_identifierString (readonly)

The EnvironmentIdentifier of the Service resource.

Returns:

  • (String)


29
30
31
# File 'interfaces/aws_refactorspaces/service_reference.rb', line 29

def environment_identifier
  @environment_identifier
end

#service_arnString (readonly)

The ARN of the Service resource.

Returns:

  • (String)


33
34
35
# File 'interfaces/aws_refactorspaces/service_reference.rb', line 33

def service_arn
  @service_arn
end

#service_identifierString (readonly)

The ServiceIdentifier of the Service resource.

Returns:

  • (String)


37
38
39
# File 'interfaces/aws_refactorspaces/service_reference.rb', line 37

def service_identifier
  @service_identifier
end

Class Method Details

.jsii_propertiesObject



39
40
41
42
43
44
45
46
# File 'interfaces/aws_refactorspaces/service_reference.rb', line 39

def self.jsii_properties
  {
    :application_identifier => "applicationIdentifier",
    :environment_identifier => "environmentIdentifier",
    :service_arn => "serviceArn",
    :service_identifier => "serviceIdentifier",
  }
end

Instance Method Details

#to_jsiiObject



48
49
50
51
52
53
54
55
56
57
# File 'interfaces/aws_refactorspaces/service_reference.rb', line 48

def to_jsii
  result = {}
  result.merge!({
    "applicationIdentifier" => @application_identifier,
    "environmentIdentifier" => @environment_identifier,
    "serviceArn" => @service_arn,
    "serviceIdentifier" => @service_identifier,
  })
  result.compact
end