Class: AWSCDK::ServiceCatalog::TagUpdateConstraintOptions

Inherits:
CommonConstraintOptions
  • Object
show all
Defined in:
service_catalog/tag_update_constraint_options.rb

Overview

Properties for ResourceUpdateConstraint.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(description: nil, message_language: nil, allow: nil) ⇒ TagUpdateConstraintOptions

Returns a new instance of TagUpdateConstraintOptions.

Parameters:

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

    The description of the constraint.

  • message_language (AWSCDK::ServiceCatalog::MessageLanguage, nil) (defaults to: nil)

    The language code.

  • allow (Boolean, nil) (defaults to: nil)

    Toggle for if users should be allowed to change/update tags on provisioned products.



10
11
12
13
14
15
16
17
# File 'service_catalog/tag_update_constraint_options.rb', line 10

def initialize(description: nil, message_language: nil, allow: nil)
  @description = description
  Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil?
  @message_language = message_language
  Jsii::Type.check_type(@message_language, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc2VydmljZWNhdGFsb2cuTWVzc2FnZUxhbmd1YWdlIn0=")), "messageLanguage") unless @message_language.nil?
  @allow = allow
  Jsii::Type.check_type(@allow, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "allow") unless @allow.nil?
end

Instance Attribute Details

#allowBoolean? (readonly)

Note:

Default: true

Toggle for if users should be allowed to change/update tags on provisioned products.

Returns:

  • (Boolean, nil)


35
36
37
# File 'service_catalog/tag_update_constraint_options.rb', line 35

def allow
  @allow
end

#descriptionString? (readonly)

Note:

Default: - No description provided

The description of the constraint.

Returns:

  • (String, nil)


23
24
25
# File 'service_catalog/tag_update_constraint_options.rb', line 23

def description
  @description
end

#message_languageAWSCDK::ServiceCatalog::MessageLanguage? (readonly)

Note:

Default: - English

The language code.

Configures the language for error messages from service catalog.



30
31
32
# File 'service_catalog/tag_update_constraint_options.rb', line 30

def message_language
  @message_language
end

Class Method Details

.jsii_propertiesObject



37
38
39
40
41
42
43
# File 'service_catalog/tag_update_constraint_options.rb', line 37

def self.jsii_properties
  {
    :description => "description",
    :message_language => "messageLanguage",
    :allow => "allow",
  }
end

Instance Method Details

#to_jsiiObject



45
46
47
48
49
50
51
52
53
54
# File 'service_catalog/tag_update_constraint_options.rb', line 45

def to_jsii
  result = {}
  result.merge!(super)
  result.merge!({
    "description" => @description,
    "messageLanguage" => @message_language,
    "allow" => @allow,
  })
  result.compact
end