Class: AWSCDK::WorkspacesWeb::CfnDataProtectionSettings::RedactionPlaceHolderProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
workspaces_web/cfn_data_protection_settings.rb

Overview

The redaction placeholder that will replace the redacted text in session.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(redaction_place_holder_type:, redaction_place_holder_text: nil) ⇒ RedactionPlaceHolderProperty

Returns a new instance of RedactionPlaceHolderProperty.

Parameters:

  • redaction_place_holder_type (String)

    The redaction placeholder type that will replace the redacted text in session.

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

    The redaction placeholder text that will replace the redacted text in session for the custom text redaction placeholder type.



829
830
831
832
833
834
# File 'workspaces_web/cfn_data_protection_settings.rb', line 829

def initialize(redaction_place_holder_type:, redaction_place_holder_text: nil)
  @redaction_place_holder_type = redaction_place_holder_type
  Jsii::Type.check_type(@redaction_place_holder_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "redactionPlaceHolderType")
  @redaction_place_holder_text = redaction_place_holder_text
  Jsii::Type.check_type(@redaction_place_holder_text, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "redactionPlaceHolderText") unless @redaction_place_holder_text.nil?
end

Instance Attribute Details

#redaction_place_holder_textString? (readonly)

The redaction placeholder text that will replace the redacted text in session for the custom text redaction placeholder type.



845
846
847
# File 'workspaces_web/cfn_data_protection_settings.rb', line 845

def redaction_place_holder_text
  @redaction_place_holder_text
end

#redaction_place_holder_typeString (readonly)

The redaction placeholder type that will replace the redacted text in session.



840
841
842
# File 'workspaces_web/cfn_data_protection_settings.rb', line 840

def redaction_place_holder_type
  @redaction_place_holder_type
end

Class Method Details

.jsii_propertiesObject



847
848
849
850
851
852
# File 'workspaces_web/cfn_data_protection_settings.rb', line 847

def self.jsii_properties
  {
    :redaction_place_holder_type => "redactionPlaceHolderType",
    :redaction_place_holder_text => "redactionPlaceHolderText",
  }
end

Instance Method Details

#to_jsiiObject



854
855
856
857
858
859
860
861
# File 'workspaces_web/cfn_data_protection_settings.rb', line 854

def to_jsii
  result = {}
  result.merge!({
    "redactionPlaceHolderType" => @redaction_place_holder_type,
    "redactionPlaceHolderText" => @redaction_place_holder_text,
  })
  result.compact
end