Class: AWSCDK::Lightsail::CfnContainer::ContainerServiceDeploymentProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
lightsail/cfn_container.rb

Overview

ContainerServiceDeployment is a property of the AWS::Lightsail::Container resource. It describes a container deployment configuration of a container service.

A deployment specifies the settings, such as the ports and launch command, of containers that are deployed to your container service.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(containers: nil, public_endpoint: nil) ⇒ ContainerServiceDeploymentProperty

Returns a new instance of ContainerServiceDeploymentProperty.

Parameters:



718
719
720
721
722
723
# File 'lightsail/cfn_container.rb', line 718

def initialize(containers: nil, public_endpoint: nil)
  @containers = containers
  Jsii::Type.check_type(@containers, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbGlnaHRzYWlsLkNmbkNvbnRhaW5lci5Db250YWluZXJQcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "containers") unless @containers.nil?
  @public_endpoint = public_endpoint.is_a?(Hash) ? ::AWSCDK::Lightsail::CfnContainer::PublicEndpointProperty.new(**public_endpoint.transform_keys(&:to_sym)) : public_endpoint
  Jsii::Type.check_type(@public_endpoint, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19saWdodHNhaWwuQ2ZuQ29udGFpbmVyLlB1YmxpY0VuZHBvaW50UHJvcGVydHkifV19fQ==")), "publicEndpoint") unless @public_endpoint.nil?
end

Instance Attribute Details

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

An object that describes the configuration for the containers of the deployment.



729
730
731
# File 'lightsail/cfn_container.rb', line 729

def containers
  @containers
end

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

An object that describes the endpoint of the deployment.



734
735
736
# File 'lightsail/cfn_container.rb', line 734

def public_endpoint
  @public_endpoint
end

Class Method Details

.jsii_propertiesObject



736
737
738
739
740
741
# File 'lightsail/cfn_container.rb', line 736

def self.jsii_properties
  {
    :containers => "containers",
    :public_endpoint => "publicEndpoint",
  }
end

Instance Method Details

#to_jsiiObject



743
744
745
746
747
748
749
750
# File 'lightsail/cfn_container.rb', line 743

def to_jsii
  result = {}
  result.merge!({
    "containers" => @containers,
    "publicEndpoint" => @public_endpoint,
  })
  result.compact
end