Class: AWSCDK::RefactorSpaces::CfnServiceProps

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

Overview

Properties for defining a CfnService.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(application_identifier:, endpoint_type:, environment_identifier:, name:, description: nil, lambda_endpoint: nil, tags: nil, url_endpoint: nil, vpc_id: nil) ⇒ CfnServiceProps

Returns a new instance of CfnServiceProps.

Parameters:



18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# File 'refactor_spaces/cfn_service_props.rb', line 18

def initialize(application_identifier:, endpoint_type:, environment_identifier:, name:, description: nil, lambda_endpoint: nil, tags: nil, url_endpoint: nil, vpc_id: nil)
  @application_identifier = application_identifier
  Jsii::Type.check_type(@application_identifier, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoic3RyaW5nIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19yZWZhY3RvcnNwYWNlcy5JQXBwbGljYXRpb25SZWYifV19fQ==")), "applicationIdentifier")
  @endpoint_type = endpoint_type
  Jsii::Type.check_type(@endpoint_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "endpointType")
  @environment_identifier = environment_identifier
  Jsii::Type.check_type(@environment_identifier, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoic3RyaW5nIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19yZWZhY3RvcnNwYWNlcy5JRW52aXJvbm1lbnRSZWYifV19fQ==")), "environmentIdentifier")
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @description = description
  Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil?
  @lambda_endpoint = lambda_endpoint.is_a?(Hash) ? ::AWSCDK::RefactorSpaces::CfnService::LambdaEndpointInputProperty.new(**lambda_endpoint.transform_keys(&:to_sym)) : lambda_endpoint
  Jsii::Type.check_type(@lambda_endpoint, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19yZWZhY3RvcnNwYWNlcy5DZm5TZXJ2aWNlLkxhbWJkYUVuZHBvaW50SW5wdXRQcm9wZXJ0eSJ9XX19")), "lambdaEndpoint") unless @lambda_endpoint.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?
  @url_endpoint = url_endpoint.is_a?(Hash) ? ::AWSCDK::RefactorSpaces::CfnService::URLEndpointInputProperty.new(**url_endpoint.transform_keys(&:to_sym)) : url_endpoint
  Jsii::Type.check_type(@url_endpoint, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19yZWZhY3RvcnNwYWNlcy5DZm5TZXJ2aWNlLlVybEVuZHBvaW50SW5wdXRQcm9wZXJ0eSJ9XX19")), "urlEndpoint") unless @url_endpoint.nil?
  @vpc_id = vpc_id
  Jsii::Type.check_type(@vpc_id, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoic3RyaW5nIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19lYzIuSVZQQ1JlZiJ9XX19")), "vpcId") unless @vpc_id.nil?
end

Instance Attribute Details

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

The unique identifier of the application.



43
44
45
# File 'refactor_spaces/cfn_service_props.rb', line 43

def application_identifier
  @application_identifier
end

#descriptionString? (readonly)

A description of the service.



63
64
65
# File 'refactor_spaces/cfn_service_props.rb', line 63

def description
  @description
end

#endpoint_typeString (readonly)

The endpoint type of the service.



48
49
50
# File 'refactor_spaces/cfn_service_props.rb', line 48

def endpoint_type
  @endpoint_type
end

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

The unique identifier of the environment.



53
54
55
# File 'refactor_spaces/cfn_service_props.rb', line 53

def environment_identifier
  @environment_identifier
end

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

A summary of the configuration for the AWS Lambda endpoint type.



68
69
70
# File 'refactor_spaces/cfn_service_props.rb', line 68

def lambda_endpoint
  @lambda_endpoint
end

#nameString (readonly)

The name of the service.



58
59
60
# File 'refactor_spaces/cfn_service_props.rb', line 58

def name
  @name
end

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

The tags assigned to the service.



73
74
75
# File 'refactor_spaces/cfn_service_props.rb', line 73

def tags
  @tags
end

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

The summary of the configuration for the URL endpoint type.



78
79
80
# File 'refactor_spaces/cfn_service_props.rb', line 78

def url_endpoint
  @url_endpoint
end

#vpc_idString, ... (readonly)

The ID of the virtual private cloud (VPC).



83
84
85
# File 'refactor_spaces/cfn_service_props.rb', line 83

def vpc_id
  @vpc_id
end

Class Method Details

.jsii_propertiesObject



85
86
87
88
89
90
91
92
93
94
95
96
97
# File 'refactor_spaces/cfn_service_props.rb', line 85

def self.jsii_properties
  {
    :application_identifier => "applicationIdentifier",
    :endpoint_type => "endpointType",
    :environment_identifier => "environmentIdentifier",
    :name => "name",
    :description => "description",
    :lambda_endpoint => "lambdaEndpoint",
    :tags => "tags",
    :url_endpoint => "urlEndpoint",
    :vpc_id => "vpcId",
  }
end

Instance Method Details

#to_jsiiObject



99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
# File 'refactor_spaces/cfn_service_props.rb', line 99

def to_jsii
  result = {}
  result.merge!({
    "applicationIdentifier" => @application_identifier,
    "endpointType" => @endpoint_type,
    "environmentIdentifier" => @environment_identifier,
    "name" => @name,
    "description" => @description,
    "lambdaEndpoint" => @lambda_endpoint,
    "tags" => @tags,
    "urlEndpoint" => @url_endpoint,
    "vpcId" => @vpc_id,
  })
  result.compact
end