Class: AWSCDK::ApplicationSignals::CfnServiceLevelObjective::DependencyConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
application_signals/cfn_service_level_objective.rb

Overview

Identifies the dependency using the DependencyKeyAttributes and DependencyOperationName .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(dependency_key_attributes:, dependency_operation_name:) ⇒ DependencyConfigProperty

Returns a new instance of DependencyConfigProperty.

Parameters:

  • dependency_key_attributes (AWSCDK::IResolvable, Hash{String => String})

    If this SLO is related to a metric collected by Application Signals, you must use this field to specify which dependency the SLO metric is related to.

  • dependency_operation_name (String)

    When the SLO monitors a specific operation of the dependency, this field specifies the name of that operation in the dependency.



844
845
846
847
848
849
# File 'application_signals/cfn_service_level_objective.rb', line 844

def initialize(dependency_key_attributes:, dependency_operation_name:)
  @dependency_key_attributes = dependency_key_attributes
  Jsii::Type.check_type(@dependency_key_attributes, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsicHJpbWl0aXZlIjoic3RyaW5nIn0sImtpbmQiOiJtYXAifX1dfX0=")), "dependencyKeyAttributes")
  @dependency_operation_name = dependency_operation_name
  Jsii::Type.check_type(@dependency_operation_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "dependencyOperationName")
end

Instance Attribute Details

#dependency_key_attributesAWSCDK::IResolvable, Hash{String => String} (readonly)

If this SLO is related to a metric collected by Application Signals, you must use this field to specify which dependency the SLO metric is related to.

  • Type designates the type of object this is.
  • ResourceType specifies the type of the resource. This field is used only when the value of the Type field is Resource or AWS::Resource .
  • Name specifies the name of the object. This is used only if the value of the Type field is Service , RemoteService , or AWS::Service .
  • Identifier identifies the resource objects of this resource. This is used only if the value of the Type field is Resource or AWS::Resource .
  • Environment specifies the location where this object is hosted, or what it belongs to.


861
862
863
# File 'application_signals/cfn_service_level_objective.rb', line 861

def dependency_key_attributes
  @dependency_key_attributes
end

#dependency_operation_nameString (readonly)

When the SLO monitors a specific operation of the dependency, this field specifies the name of that operation in the dependency.



866
867
868
# File 'application_signals/cfn_service_level_objective.rb', line 866

def dependency_operation_name
  @dependency_operation_name
end

Class Method Details

.jsii_propertiesObject



868
869
870
871
872
873
# File 'application_signals/cfn_service_level_objective.rb', line 868

def self.jsii_properties
  {
    :dependency_key_attributes => "dependencyKeyAttributes",
    :dependency_operation_name => "dependencyOperationName",
  }
end

Instance Method Details

#to_jsiiObject



875
876
877
878
879
880
881
882
# File 'application_signals/cfn_service_level_objective.rb', line 875

def to_jsii
  result = {}
  result.merge!({
    "dependencyKeyAttributes" => @dependency_key_attributes,
    "dependencyOperationName" => @dependency_operation_name,
  })
  result.compact
end