Class: AWSCDK::S3Outposts::CfnEndpoint::FailedReasonProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
s3_outposts/cfn_endpoint.rb

Overview

The failure reason, if any, for a create or delete endpoint operation.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error_code: nil, message: nil) ⇒ FailedReasonProperty

Returns a new instance of FailedReasonProperty.

Parameters:

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

    The failure code, if any, for a create or delete endpoint operation.

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

    Additional error details describing the endpoint failure and recommended action.



618
619
620
621
622
623
# File 's3_outposts/cfn_endpoint.rb', line 618

def initialize(error_code: nil, message: nil)
  @error_code = error_code
  Jsii::Type.check_type(@error_code, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "errorCode") unless @error_code.nil?
  @message = message
  Jsii::Type.check_type(@message, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "message") unless @message.nil?
end

Instance Attribute Details

#error_codeString? (readonly)

The failure code, if any, for a create or delete endpoint operation.



629
630
631
# File 's3_outposts/cfn_endpoint.rb', line 629

def error_code
  @error_code
end

#messageString? (readonly)

Additional error details describing the endpoint failure and recommended action.



634
635
636
# File 's3_outposts/cfn_endpoint.rb', line 634

def message
  @message
end

Class Method Details

.jsii_propertiesObject



636
637
638
639
640
641
# File 's3_outposts/cfn_endpoint.rb', line 636

def self.jsii_properties
  {
    :error_code => "errorCode",
    :message => "message",
  }
end

Instance Method Details

#to_jsiiObject



643
644
645
646
647
648
649
650
# File 's3_outposts/cfn_endpoint.rb', line 643

def to_jsii
  result = {}
  result.merge!({
    "errorCode" => @error_code,
    "message" => @message,
  })
  result.compact
end