Class: AWSCDK::FraudDetector::CfnDetector::LabelProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
fraud_detector/cfn_detector.rb

Overview

The label details.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(arn: nil, created_time: nil, description: nil, inline: nil, last_updated_time: nil, name: nil, tags: nil) ⇒ LabelProperty

Returns a new instance of LabelProperty.

Parameters:

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

    The label ARN.

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

    Timestamp of when the event type was created.

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

    The label description.

  • inline (Boolean, AWSCDK::IResolvable, nil) (defaults to: nil)

    Indicates whether the resource is defined within this CloudFormation template and impacts the create, update, and delete behavior of the stack.

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

    Timestamp of when the label was last updated.

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

    The label name.

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

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



1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
# File 'fraud_detector/cfn_detector.rb', line 1040

def initialize(arn: nil, created_time: nil, description: nil, inline: nil, last_updated_time: nil, name: nil, tags: nil)
  @arn = arn
  Jsii::Type.check_type(@arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "arn") unless @arn.nil?
  @created_time = created_time
  Jsii::Type.check_type(@created_time, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "createdTime") unless @created_time.nil?
  @description = description
  Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil?
  @inline = inline
  Jsii::Type.check_type(@inline, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "inline") unless @inline.nil?
  @last_updated_time = last_updated_time
  Jsii::Type.check_type(@last_updated_time, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "lastUpdatedTime") unless @last_updated_time.nil?
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.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

#arnString? (readonly)

The label ARN.



1061
1062
1063
# File 'fraud_detector/cfn_detector.rb', line 1061

def arn
  @arn
end

#created_timeString? (readonly)

Timestamp of when the event type was created.



1066
1067
1068
# File 'fraud_detector/cfn_detector.rb', line 1066

def created_time
  @created_time
end

#descriptionString? (readonly)

The label description.



1071
1072
1073
# File 'fraud_detector/cfn_detector.rb', line 1071

def description
  @description
end

#inlineBoolean, ... (readonly)

Indicates whether the resource is defined within this CloudFormation template and impacts the create, update, and delete behavior of the stack.

If the value is true , CloudFormation will create/update/delete the resource when creating/updating/deleting the stack. If the value is false , CloudFormation will validate that the object exists and then use it within the resource without making changes to the object.

For example, when creating AWS::FraudDetector::Detector you must define at least two variables. You can set Inline=true for these variables and CloudFormation will create/update/delete the variables as part of stack operations. However, if you set Inline=false , CloudFormation will associate the variables to your detector but not execute any changes to the variables.



1080
1081
1082
# File 'fraud_detector/cfn_detector.rb', line 1080

def inline
  @inline
end

#last_updated_timeString? (readonly)

Timestamp of when the label was last updated.



1085
1086
1087
# File 'fraud_detector/cfn_detector.rb', line 1085

def last_updated_time
  @last_updated_time
end

#nameString? (readonly)

The label name.



1090
1091
1092
# File 'fraud_detector/cfn_detector.rb', line 1090

def name
  @name
end

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

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

For more information, see Tag .



1097
1098
1099
# File 'fraud_detector/cfn_detector.rb', line 1097

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
# File 'fraud_detector/cfn_detector.rb', line 1099

def self.jsii_properties
  {
    :arn => "arn",
    :created_time => "createdTime",
    :description => "description",
    :inline => "inline",
    :last_updated_time => "lastUpdatedTime",
    :name => "name",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
# File 'fraud_detector/cfn_detector.rb', line 1111

def to_jsii
  result = {}
  result.merge!({
    "arn" => @arn,
    "createdTime" => @created_time,
    "description" => @description,
    "inline" => @inline,
    "lastUpdatedTime" => @last_updated_time,
    "name" => @name,
    "tags" => @tags,
  })
  result.compact
end