Class: AWSCDK::Events::CfnConnection::ResourceParametersProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
events/cfn_connection.rb

Overview

The parameters for EventBridge to use when invoking the resource endpoint.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(resource_configuration_arn:, resource_association_arn: nil) ⇒ ResourceParametersProperty

Returns a new instance of ResourceParametersProperty.

Parameters:

  • resource_configuration_arn (String)

    The Amazon Resource Name (ARN) of the Amazon VPC Lattice resource configuration for the resource endpoint.

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

    For connections to private APIs, the Amazon Resource Name (ARN) of the resource association EventBridge created between the connection and the private API's resource configuration.



1093
1094
1095
1096
1097
1098
# File 'events/cfn_connection.rb', line 1093

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

Instance Attribute Details

#resource_association_arnString? (readonly)

For connections to private APIs, the Amazon Resource Name (ARN) of the resource association EventBridge created between the connection and the private API's resource configuration.

The value of this property is set by EventBridge . Any value you specify in your template is ignored.



1111
1112
1113
# File 'events/cfn_connection.rb', line 1111

def resource_association_arn
  @resource_association_arn
end

#resource_configuration_arnString (readonly)

The Amazon Resource Name (ARN) of the Amazon VPC Lattice resource configuration for the resource endpoint.



1104
1105
1106
# File 'events/cfn_connection.rb', line 1104

def resource_configuration_arn
  @resource_configuration_arn
end

Class Method Details

.jsii_propertiesObject



1113
1114
1115
1116
1117
1118
# File 'events/cfn_connection.rb', line 1113

def self.jsii_properties
  {
    :resource_configuration_arn => "resourceConfigurationArn",
    :resource_association_arn => "resourceAssociationArn",
  }
end

Instance Method Details

#to_jsiiObject



1120
1121
1122
1123
1124
1125
1126
1127
# File 'events/cfn_connection.rb', line 1120

def to_jsii
  result = {}
  result.merge!({
    "resourceConfigurationArn" => @resource_configuration_arn,
    "resourceAssociationArn" => @resource_association_arn,
  })
  result.compact
end