Class: AWSCDK::Connect::CfnIntegrationAssociationProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
connect/cfn_integration_association_props.rb

Overview

Properties for defining a CfnIntegrationAssociation.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(instance_id:, integration_arn:, integration_type:, tags: nil) ⇒ CfnIntegrationAssociationProps

Returns a new instance of CfnIntegrationAssociationProps.

Parameters:

  • instance_id (String, AWSCDK::Interfaces::AWSConnect::IInstanceRef)

    The Amazon Resource Name (ARN) of the instance.

  • integration_arn (String)

    ARN of the integration being associated with the instance.

  • integration_type (String)

    Specifies the integration type to be associated with the instance.

  • tags (Array<AWSCDK::CfnTag>, nil) (defaults to: nil)

    The tags used to organize, track, or control access for this resource.



13
14
15
16
17
18
19
20
21
22
# File 'connect/cfn_integration_association_props.rb', line 13

def initialize(instance_id:, integration_arn:, integration_type:, tags: nil)
  @instance_id = instance_id
  Jsii::Type.check_type(@instance_id, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoic3RyaW5nIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19jb25uZWN0LklJbnN0YW5jZVJlZiJ9XX19")), "instanceId")
  @integration_arn = integration_arn
  Jsii::Type.check_type(@integration_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "integrationArn")
  @integration_type = integration_type
  Jsii::Type.check_type(@integration_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "integrationType")
  @tags = tags.is_a?(Array) ? tags.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil?
end

Instance Attribute Details

#instance_idString, AWSCDK::Interfaces::AWSConnect::IInstanceRef (readonly)

The Amazon Resource Name (ARN) of the instance.

Minimum : 1

Maximum : 100



32
33
34
# File 'connect/cfn_integration_association_props.rb', line 32

def instance_id
  @instance_id
end

#integration_arnString (readonly)

ARN of the integration being associated with the instance.

Minimum : 1

Maximum : 140



41
42
43
# File 'connect/cfn_integration_association_props.rb', line 41

def integration_arn
  @integration_arn
end

#integration_typeString (readonly)

Specifies the integration type to be associated with the instance.

Allowed Values : LEX_BOT | LAMBDA_FUNCTION



48
49
50
# File 'connect/cfn_integration_association_props.rb', line 48

def integration_type
  @integration_type
end

#tagsArray<AWSCDK::CfnTag>? (readonly)

The tags used to organize, track, or control access for this resource.



53
54
55
# File 'connect/cfn_integration_association_props.rb', line 53

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



55
56
57
58
59
60
61
62
# File 'connect/cfn_integration_association_props.rb', line 55

def self.jsii_properties
  {
    :instance_id => "instanceId",
    :integration_arn => "integrationArn",
    :integration_type => "integrationType",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



64
65
66
67
68
69
70
71
72
73
# File 'connect/cfn_integration_association_props.rb', line 64

def to_jsii
  result = {}
  result.merge!({
    "instanceId" => @instance_id,
    "integrationArn" => @integration_arn,
    "integrationType" => @integration_type,
    "tags" => @tags,
  })
  result.compact
end