Class: AWSCDK::Interfaces::AWSRefactorspaces::ServiceReference
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Interfaces::AWSRefactorspaces::ServiceReference
- Defined in:
- interfaces/aws_refactorspaces/service_reference.rb
Overview
A reference to a Service resource.
Instance Attribute Summary collapse
-
#application_identifier ⇒ String
readonly
The ApplicationIdentifier of the Service resource.
-
#environment_identifier ⇒ String
readonly
The EnvironmentIdentifier of the Service resource.
-
#service_arn ⇒ String
readonly
The ARN of the Service resource.
-
#service_identifier ⇒ String
readonly
The ServiceIdentifier of the Service resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(application_identifier:, environment_identifier:, service_arn:, service_identifier:) ⇒ ServiceReference
constructor
A new instance of ServiceReference.
- #to_jsii ⇒ Object
Constructor Details
#initialize(application_identifier:, environment_identifier:, service_arn:, service_identifier:) ⇒ ServiceReference
Returns a new instance of ServiceReference.
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_identifier ⇒ String (readonly)
The ApplicationIdentifier of the Service resource.
25 26 27 |
# File 'interfaces/aws_refactorspaces/service_reference.rb', line 25 def application_identifier @application_identifier end |
#environment_identifier ⇒ String (readonly)
The EnvironmentIdentifier of the Service resource.
29 30 31 |
# File 'interfaces/aws_refactorspaces/service_reference.rb', line 29 def environment_identifier @environment_identifier end |
#service_arn ⇒ String (readonly)
The ARN of the Service resource.
33 34 35 |
# File 'interfaces/aws_refactorspaces/service_reference.rb', line 33 def service_arn @service_arn end |
#service_identifier ⇒ String (readonly)
The ServiceIdentifier of the Service resource.
37 38 39 |
# File 'interfaces/aws_refactorspaces/service_reference.rb', line 37 def service_identifier @service_identifier end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |