Class: AWSCDK::Route53::SvcbRecordValue

Inherits:
Jsii::Object
  • Object
show all
Defined in:
route53/svcb_record_value.rb

Overview

Represents an SVCB record value.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ SvcbRecordValue

Returns a new instance of SvcbRecordValue.

Raises:

  • (NoMethodError)


8
9
10
# File 'route53/svcb_record_value.rb', line 8

def initialize(*args)
  raise NoMethodError, "aws-cdk-lib.aws_route53.SvcbRecordValue does not have a visible constructor; use the provided factory methods"
end

Class Method Details

._alias(target_name) ⇒ AWSCDK::Route53::SvcbRecordValue

An SVCB AliasMode record value.

Parameters:

  • target_name (String)

    The domain name of the alternative endpoint.

Returns:

  • (AWSCDK::Route53::SvcbRecordValue)


22
23
24
25
# File 'route53/svcb_record_value.rb', line 22

def self._alias(target_name)
  Jsii::Type.check_type(target_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "targetName")
  Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_route53.SvcbRecordValue", "alias", [target_name])
end

.jsii_overridable_methodsObject



12
13
14
15
16
# File 'route53/svcb_record_value.rb', line 12

def self.jsii_overridable_methods
  {
    :to_string => { kind: :method, name: "toString", is_optional: false },
  }
end

.service(props = nil) ⇒ AWSCDK::Route53::SvcbRecordValue

An SVCB ServiceMode record value.

Parameters:

Returns:

  • (AWSCDK::Route53::SvcbRecordValue)


31
32
33
34
35
# File 'route53/svcb_record_value.rb', line 31

def self.service(props = nil)
  props = props.is_a?(Hash) ? ::AWSCDK::Route53::SvcbRecordServiceModeProps.new(**props.transform_keys(&:to_sym)) : props
  Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfcm91dGU1My5TdmNiUmVjb3JkU2VydmljZU1vZGVQcm9wcyJ9")), "props") unless props.nil?
  Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_route53.SvcbRecordValue", "service", [props])
end

Instance Method Details

#to_stringString

Returns the string representation of SVCB and HTTPS record value.

Returns:

  • (String)


40
41
42
# File 'route53/svcb_record_value.rb', line 40

def to_string()
  jsii_call_method("toString", [])
end