Class: AWSCDK::AppConfig::CfnExtension::ActionProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
app_config/cfn_extension.rb

Overview

The actions defined in the extension.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, uri:, description: nil, role_arn: nil) ⇒ ActionProperty

Returns a new instance of ActionProperty.

Parameters:

  • name (String)

    The extension name.

  • uri (String)

    The extension URI associated to the action point in the extension definition.

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

    Information about actions defined in the extension.

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

    An Amazon Resource Name (ARN) for an AWS Identity and Access Management assume role.



611
612
613
614
615
616
617
618
619
620
# File 'app_config/cfn_extension.rb', line 611

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

Instance Attribute Details

#descriptionString? (readonly)

Information about actions defined in the extension.



638
639
640
# File 'app_config/cfn_extension.rb', line 638

def description
  @description
end

#nameString (readonly)

The extension name.



626
627
628
# File 'app_config/cfn_extension.rb', line 626

def name
  @name
end

#role_arnString? (readonly)

An Amazon Resource Name (ARN) for an AWS Identity and Access Management assume role.



643
644
645
# File 'app_config/cfn_extension.rb', line 643

def role_arn
  @role_arn
end

#uriString (readonly)

The extension URI associated to the action point in the extension definition.

The URI can be an Amazon Resource Name (ARN) for one of the following: an AWS Lambda function, an Amazon Simple Queue Service queue, an Amazon Simple Notification Service topic, or the Amazon EventBridge default event bus.



633
634
635
# File 'app_config/cfn_extension.rb', line 633

def uri
  @uri
end

Class Method Details

.jsii_propertiesObject



645
646
647
648
649
650
651
652
# File 'app_config/cfn_extension.rb', line 645

def self.jsii_properties
  {
    :name => "name",
    :uri => "uri",
    :description => "description",
    :role_arn => "roleArn",
  }
end

Instance Method Details

#to_jsiiObject



654
655
656
657
658
659
660
661
662
663
# File 'app_config/cfn_extension.rb', line 654

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