Class: AWSCDK::CodeDeploy::CfnDeploymentGroup::TriggerConfigProperty

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

Overview

Information about notification triggers for the deployment group.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(trigger_events: nil, trigger_name: nil, trigger_target_arn: nil) ⇒ TriggerConfigProperty

Returns a new instance of TriggerConfigProperty.

Parameters:

  • trigger_events (Array<String>, nil) (defaults to: nil)

    The event type or types that trigger notifications.

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

    The name of the notification trigger.

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

    The Amazon Resource Name (ARN) of the Amazon Simple Notification Service topic through which notifications about deployment or instance events are sent.



1968
1969
1970
1971
1972
1973
1974
1975
# File 'code_deploy/cfn_deployment_group.rb', line 1968

def initialize(trigger_events: nil, trigger_name: nil, trigger_target_arn: nil)
  @trigger_events = trigger_events
  Jsii::Type.check_type(@trigger_events, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "triggerEvents") unless @trigger_events.nil?
  @trigger_name = trigger_name
  Jsii::Type.check_type(@trigger_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "triggerName") unless @trigger_name.nil?
  @trigger_target_arn = trigger_target_arn
  Jsii::Type.check_type(@trigger_target_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "triggerTargetArn") unless @trigger_target_arn.nil?
end

Instance Attribute Details

#trigger_eventsArray<String>? (readonly)

The event type or types that trigger notifications.



1981
1982
1983
# File 'code_deploy/cfn_deployment_group.rb', line 1981

def trigger_events
  @trigger_events
end

#trigger_nameString? (readonly)

The name of the notification trigger.



1986
1987
1988
# File 'code_deploy/cfn_deployment_group.rb', line 1986

def trigger_name
  @trigger_name
end

#trigger_target_arnString? (readonly)

The Amazon Resource Name (ARN) of the Amazon Simple Notification Service topic through which notifications about deployment or instance events are sent.



1991
1992
1993
# File 'code_deploy/cfn_deployment_group.rb', line 1991

def trigger_target_arn
  @trigger_target_arn
end

Class Method Details

.jsii_propertiesObject



1993
1994
1995
1996
1997
1998
1999
# File 'code_deploy/cfn_deployment_group.rb', line 1993

def self.jsii_properties
  {
    :trigger_events => "triggerEvents",
    :trigger_name => "triggerName",
    :trigger_target_arn => "triggerTargetArn",
  }
end

Instance Method Details

#to_jsiiObject



2001
2002
2003
2004
2005
2006
2007
2008
2009
# File 'code_deploy/cfn_deployment_group.rb', line 2001

def to_jsii
  result = {}
  result.merge!({
    "triggerEvents" => @trigger_events,
    "triggerName" => @trigger_name,
    "triggerTargetArn" => @trigger_target_arn,
  })
  result.compact
end