Class: AWSCDK::RefactorSpaces::CfnRouteProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
refactor_spaces/cfn_route_props.rb

Overview

Properties for defining a CfnRoute.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(application_identifier:, environment_identifier:, route_type:, service_identifier:, default_route: nil, tags: nil, uri_path_route: nil) ⇒ CfnRouteProps

Returns a new instance of CfnRouteProps.

Parameters:



16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'refactor_spaces/cfn_route_props.rb', line 16

def initialize(application_identifier:, environment_identifier:, route_type:, service_identifier:, default_route: nil, tags: nil, uri_path_route: nil)
  @application_identifier = application_identifier
  Jsii::Type.check_type(@application_identifier, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoic3RyaW5nIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19yZWZhY3RvcnNwYWNlcy5JQXBwbGljYXRpb25SZWYifV19fQ==")), "applicationIdentifier")
  @environment_identifier = environment_identifier
  Jsii::Type.check_type(@environment_identifier, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoic3RyaW5nIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19yZWZhY3RvcnNwYWNlcy5JRW52aXJvbm1lbnRSZWYifV19fQ==")), "environmentIdentifier")
  @route_type = route_type
  Jsii::Type.check_type(@route_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "routeType")
  @service_identifier = service_identifier
  Jsii::Type.check_type(@service_identifier, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoic3RyaW5nIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19yZWZhY3RvcnNwYWNlcy5JU2VydmljZVJlZiJ9XX19")), "serviceIdentifier")
  @default_route = default_route.is_a?(Hash) ? ::AWSCDK::RefactorSpaces::CfnRoute::DefaultRouteInputProperty.new(**default_route.transform_keys(&:to_sym)) : default_route
  Jsii::Type.check_type(@default_route, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19yZWZhY3RvcnNwYWNlcy5DZm5Sb3V0ZS5EZWZhdWx0Um91dGVJbnB1dFByb3BlcnR5In1dfX0=")), "defaultRoute") unless @default_route.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?
  @uri_path_route = uri_path_route.is_a?(Hash) ? ::AWSCDK::RefactorSpaces::CfnRoute::URIPathRouteInputProperty.new(**uri_path_route.transform_keys(&:to_sym)) : uri_path_route
  Jsii::Type.check_type(@uri_path_route, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19yZWZhY3RvcnNwYWNlcy5DZm5Sb3V0ZS5VcmlQYXRoUm91dGVJbnB1dFByb3BlcnR5In1dfX0=")), "uriPathRoute") unless @uri_path_route.nil?
end

Instance Attribute Details

#application_identifierString, AWSCDK::Interfaces::AWSRefactorspaces::IApplicationRef (readonly)

The unique identifier of the application.



37
38
39
# File 'refactor_spaces/cfn_route_props.rb', line 37

def application_identifier
  @application_identifier
end

#default_routeAWSCDK::IResolvable, ... (readonly)

Configuration for the default route type.



57
58
59
# File 'refactor_spaces/cfn_route_props.rb', line 57

def default_route
  @default_route
end

#environment_identifierString, AWSCDK::Interfaces::AWSRefactorspaces::IEnvironmentRef (readonly)

The unique identifier of the environment.



42
43
44
# File 'refactor_spaces/cfn_route_props.rb', line 42

def environment_identifier
  @environment_identifier
end

#route_typeString (readonly)

The route type of the route.



47
48
49
# File 'refactor_spaces/cfn_route_props.rb', line 47

def route_type
  @route_type
end

#service_identifierString, AWSCDK::Interfaces::AWSRefactorspaces::IServiceRef (readonly)

The unique identifier of the service.



52
53
54
# File 'refactor_spaces/cfn_route_props.rb', line 52

def service_identifier
  @service_identifier
end

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

The tags assigned to the route.



62
63
64
# File 'refactor_spaces/cfn_route_props.rb', line 62

def tags
  @tags
end

#uri_path_routeAWSCDK::IResolvable, ... (readonly)

The configuration for the URI path route type.



67
68
69
# File 'refactor_spaces/cfn_route_props.rb', line 67

def uri_path_route
  @uri_path_route
end

Class Method Details

.jsii_propertiesObject



69
70
71
72
73
74
75
76
77
78
79
# File 'refactor_spaces/cfn_route_props.rb', line 69

def self.jsii_properties
  {
    :application_identifier => "applicationIdentifier",
    :environment_identifier => "environmentIdentifier",
    :route_type => "routeType",
    :service_identifier => "serviceIdentifier",
    :default_route => "defaultRoute",
    :tags => "tags",
    :uri_path_route => "uriPathRoute",
  }
end

Instance Method Details

#to_jsiiObject



81
82
83
84
85
86
87
88
89
90
91
92
93
# File 'refactor_spaces/cfn_route_props.rb', line 81

def to_jsii
  result = {}
  result.merge!({
    "applicationIdentifier" => @application_identifier,
    "environmentIdentifier" => @environment_identifier,
    "routeType" => @route_type,
    "serviceIdentifier" => @service_identifier,
    "defaultRoute" => @default_route,
    "tags" => @tags,
    "uriPathRoute" => @uri_path_route,
  })
  result.compact
end