Class: AWSCDK::DevOpsAgent::CfnAgentSpaceProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
dev_ops_agent/cfn_agent_space_props.rb

Overview

Properties for defining a CfnAgentSpace.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, description: nil, kms_key_arn: nil, locale: nil, operator_app: nil, tags: nil) ⇒ CfnAgentSpaceProps

Returns a new instance of CfnAgentSpaceProps.

Parameters:

  • name (String)

    The name of the Agent Space.

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

    The description of the Agent Space.

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

    The ARN of the KMS key to use for encryption.

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

    The locale for the AgentSpace, which determines the language used in agent responses.

  • operator_app (AWSCDK::IResolvable, AWSCDK::DevOpsAgent::CfnAgentSpace::OperatorAppProperty, nil) (defaults to: nil)
  • tags (Array<AWSCDK::CfnTag>, nil) (defaults to: nil)

    An array of key-value pairs to apply to this resource.



15
16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'dev_ops_agent/cfn_agent_space_props.rb', line 15

def initialize(name:, description: nil, kms_key_arn: nil, locale: nil, operator_app: nil, tags: nil)
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @description = description
  Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil?
  @kms_key_arn = kms_key_arn
  Jsii::Type.check_type(@kms_key_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "kmsKeyArn") unless @kms_key_arn.nil?
  @locale = locale
  Jsii::Type.check_type(@locale, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "locale") unless @locale.nil?
  @operator_app = operator_app.is_a?(Hash) ? ::AWSCDK::DevOpsAgent::CfnAgentSpace::OperatorAppProperty.new(**operator_app.transform_keys(&:to_sym)) : operator_app
  Jsii::Type.check_type(@operator_app, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19kZXZvcHNhZ2VudC5DZm5BZ2VudFNwYWNlLk9wZXJhdG9yQXBwUHJvcGVydHkifV19fQ==")), "operatorApp") unless @operator_app.nil?
  @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

#descriptionString? (readonly)

The description of the Agent Space.



39
40
41
# File 'dev_ops_agent/cfn_agent_space_props.rb', line 39

def description
  @description
end

#kms_key_arnString? (readonly)

The ARN of the KMS key to use for encryption.



44
45
46
# File 'dev_ops_agent/cfn_agent_space_props.rb', line 44

def kms_key_arn
  @kms_key_arn
end

#localeString? (readonly)

The locale for the AgentSpace, which determines the language used in agent responses.



49
50
51
# File 'dev_ops_agent/cfn_agent_space_props.rb', line 49

def locale
  @locale
end

#nameString (readonly)

The name of the Agent Space.



34
35
36
# File 'dev_ops_agent/cfn_agent_space_props.rb', line 34

def name
  @name
end

#operator_appAWSCDK::IResolvable, ... (readonly)



52
53
54
# File 'dev_ops_agent/cfn_agent_space_props.rb', line 52

def operator_app
  @operator_app
end

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

An array of key-value pairs to apply to this resource.



57
58
59
# File 'dev_ops_agent/cfn_agent_space_props.rb', line 57

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



59
60
61
62
63
64
65
66
67
68
# File 'dev_ops_agent/cfn_agent_space_props.rb', line 59

def self.jsii_properties
  {
    :name => "name",
    :description => "description",
    :kms_key_arn => "kmsKeyArn",
    :locale => "locale",
    :operator_app => "operatorApp",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



70
71
72
73
74
75
76
77
78
79
80
81
# File 'dev_ops_agent/cfn_agent_space_props.rb', line 70

def to_jsii
  result = {}
  result.merge!({
    "name" => @name,
    "description" => @description,
    "kmsKeyArn" => @kms_key_arn,
    "locale" => @locale,
    "operatorApp" => @operator_app,
    "tags" => @tags,
  })
  result.compact
end