Class: AWSCDK::CodeDeploy::CfnDeploymentGroup::AlarmProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
code_deploy/cfn_deployment_group.rb

Overview

The Alarm property type specifies a CloudWatch alarm to use for an AWS CodeDeploy deployment group.

The Alarm property of the CodeDeploy DeploymentGroup AlarmConfiguration property contains a list of Alarm property types.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name: nil) ⇒ AlarmProperty

Returns a new instance of AlarmProperty.

Parameters:

  • name (String, nil) (defaults to: nil)

    The name of the alarm.



825
826
827
828
# File 'code_deploy/cfn_deployment_group.rb', line 825

def initialize(name: nil)
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil?
end

Instance Attribute Details

#nameString? (readonly)

The name of the alarm.

Maximum length is 255 characters. Each alarm name can be used only once in a list of alarms.



836
837
838
# File 'code_deploy/cfn_deployment_group.rb', line 836

def name
  @name
end

Class Method Details

.jsii_propertiesObject



838
839
840
841
842
# File 'code_deploy/cfn_deployment_group.rb', line 838

def self.jsii_properties
  {
    :name => "name",
  }
end

Instance Method Details

#to_jsiiObject



844
845
846
847
848
849
850
# File 'code_deploy/cfn_deployment_group.rb', line 844

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