Class: AWSCDK::RefactorSpaces::CfnApplicationProps

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

Overview

Properties for defining a CfnApplication.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(environment_identifier:, name:, proxy_type:, vpc_id:, api_gateway_proxy: nil, tags: nil) ⇒ CfnApplicationProps

Returns a new instance of CfnApplicationProps.

Parameters:



15
16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'refactor_spaces/cfn_application_props.rb', line 15

def initialize(environment_identifier:, name:, proxy_type:, vpc_id:, api_gateway_proxy: nil, tags: nil)
  @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")
  @proxy_type = proxy_type
  Jsii::Type.check_type(@proxy_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "proxyType")
  @vpc_id = vpc_id
  Jsii::Type.check_type(@vpc_id, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoic3RyaW5nIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19lYzIuSVZQQ1JlZiJ9XX19")), "vpcId")
  @api_gateway_proxy = api_gateway_proxy.is_a?(Hash) ? ::AWSCDK::RefactorSpaces::CfnApplication::APIGatewayProxyInputProperty.new(**api_gateway_proxy.transform_keys(&:to_sym)) : api_gateway_proxy
  Jsii::Type.check_type(@api_gateway_proxy, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19yZWZhY3RvcnNwYWNlcy5DZm5BcHBsaWNhdGlvbi5BcGlHYXRld2F5UHJveHlJbnB1dFByb3BlcnR5In1dfX0=")), "apiGatewayProxy") unless @api_gateway_proxy.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?
end

Instance Attribute Details

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

The endpoint URL of the Amazon API Gateway proxy.



54
55
56
# File 'refactor_spaces/cfn_application_props.rb', line 54

def api_gateway_proxy
  @api_gateway_proxy
end

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

The unique identifier of the environment.



34
35
36
# File 'refactor_spaces/cfn_application_props.rb', line 34

def environment_identifier
  @environment_identifier
end

#nameString (readonly)

The name of the application.



39
40
41
# File 'refactor_spaces/cfn_application_props.rb', line 39

def name
  @name
end

#proxy_typeString (readonly)

The proxy type of the proxy created within the application.



44
45
46
# File 'refactor_spaces/cfn_application_props.rb', line 44

def proxy_type
  @proxy_type
end

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

The tags assigned to the application.



59
60
61
# File 'refactor_spaces/cfn_application_props.rb', line 59

def tags
  @tags
end

#vpc_idString, AWSCDK::Interfaces::AWSEC2::IVPCRef (readonly)

The ID of the virtual private cloud (VPC).



49
50
51
# File 'refactor_spaces/cfn_application_props.rb', line 49

def vpc_id
  @vpc_id
end

Class Method Details

.jsii_propertiesObject



61
62
63
64
65
66
67
68
69
70
# File 'refactor_spaces/cfn_application_props.rb', line 61

def self.jsii_properties
  {
    :environment_identifier => "environmentIdentifier",
    :name => "name",
    :proxy_type => "proxyType",
    :vpc_id => "vpcId",
    :api_gateway_proxy => "apiGatewayProxy",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



72
73
74
75
76
77
78
79
80
81
82
83
# File 'refactor_spaces/cfn_application_props.rb', line 72

def to_jsii
  result = {}
  result.merge!({
    "environmentIdentifier" => @environment_identifier,
    "name" => @name,
    "proxyType" => @proxy_type,
    "vpcId" => @vpc_id,
    "apiGatewayProxy" => @api_gateway_proxy,
    "tags" => @tags,
  })
  result.compact
end