Class: AWSCDK::Interfaces::AWSCodepipeline::WebhookReference
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Interfaces::AWSCodepipeline::WebhookReference
- Defined in:
- interfaces/aws_codepipeline/webhook_reference.rb
Overview
A reference to a Webhook resource.
Instance Attribute Summary collapse
-
#webhook_name ⇒ String
readonly
The Name of the Webhook resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(webhook_name:) ⇒ WebhookReference
constructor
A new instance of WebhookReference.
- #to_jsii ⇒ Object
Constructor Details
#initialize(webhook_name:) ⇒ WebhookReference
Returns a new instance of WebhookReference.
8 9 10 11 |
# File 'interfaces/aws_codepipeline/webhook_reference.rb', line 8 def initialize(webhook_name:) @webhook_name = webhook_name Jsii::Type.check_type(@webhook_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "webhookName") end |
Instance Attribute Details
#webhook_name ⇒ String (readonly)
The Name of the Webhook resource.
16 17 18 |
# File 'interfaces/aws_codepipeline/webhook_reference.rb', line 16 def webhook_name @webhook_name end |
Class Method Details
.jsii_properties ⇒ Object
18 19 20 21 22 |
# File 'interfaces/aws_codepipeline/webhook_reference.rb', line 18 def self.jsii_properties { :webhook_name => "webhookName", } end |
Instance Method Details
#to_jsii ⇒ Object
24 25 26 27 28 29 30 |
# File 'interfaces/aws_codepipeline/webhook_reference.rb', line 24 def to_jsii result = {} result.merge!({ "webhookName" => @webhook_name, }) result.compact end |