Class: AWSCDK::CodeBuild::DockerServerOptions
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CodeBuild::DockerServerOptions
- Defined in:
- code_build/docker_server_options.rb
Overview
The Docker server configuration CodeBuild use to build your Docker image.
Instance Attribute Summary collapse
-
#compute_type ⇒ AWSCDK::CodeBuild::DockerServerComputeType
readonly
The type of compute to use for the docker server.
-
#security_groups ⇒ Array<AWSCDK::EC2::ISecurityGroup>?
readonly
A list of maximum 5 security groups.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(compute_type:, security_groups: nil) ⇒ DockerServerOptions
constructor
A new instance of DockerServerOptions.
- #to_jsii ⇒ Object
Constructor Details
#initialize(compute_type:, security_groups: nil) ⇒ DockerServerOptions
Returns a new instance of DockerServerOptions.
9 10 11 12 13 14 |
# File 'code_build/docker_server_options.rb', line 9 def initialize(compute_type:, security_groups: nil) @compute_type = compute_type Jsii::Type.check_type(@compute_type, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY29kZWJ1aWxkLkRvY2tlclNlcnZlckNvbXB1dGVUeXBlIn0=")), "computeType") @security_groups = security_groups Jsii::Type.check_type(@security_groups, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLmF3c19lYzIuSVNlY3VyaXR5R3JvdXAifSwia2luZCI6ImFycmF5In19")), "securityGroups") unless @security_groups.nil? end |
Instance Attribute Details
#compute_type ⇒ AWSCDK::CodeBuild::DockerServerComputeType (readonly)
The type of compute to use for the docker server.
See the DockerServerComputeType enum for the possible values.
21 22 23 |
# File 'code_build/docker_server_options.rb', line 21 def compute_type @compute_type end |
#security_groups ⇒ Array<AWSCDK::EC2::ISecurityGroup>? (readonly)
Note:
Default: - no security group
A list of maximum 5 security groups.
26 27 28 |
# File 'code_build/docker_server_options.rb', line 26 def security_groups @security_groups end |
Class Method Details
.jsii_properties ⇒ Object
28 29 30 31 32 33 |
# File 'code_build/docker_server_options.rb', line 28 def self.jsii_properties { :compute_type => "computeType", :security_groups => "securityGroups", } end |
Instance Method Details
#to_jsii ⇒ Object
35 36 37 38 39 40 41 42 |
# File 'code_build/docker_server_options.rb', line 35 def to_jsii result = {} result.merge!({ "computeType" => @compute_type, "securityGroups" => @security_groups, }) result.compact end |