Class: AWSCDK::CodeBuild::CfnProject::BatchRestrictionsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CodeBuild::CfnProject::BatchRestrictionsProperty
- Defined in:
- code_build/cfn_project.rb
Overview
Specifies restrictions for the batch build.
Instance Attribute Summary collapse
-
#compute_types_allowed ⇒ Array<String>?
readonly
An array of strings that specify the compute types that are allowed for the batch build.
-
#maximum_builds_allowed ⇒ Numeric?
readonly
Specifies the maximum number of builds allowed.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(compute_types_allowed: nil, maximum_builds_allowed: nil) ⇒ BatchRestrictionsProperty
constructor
A new instance of BatchRestrictionsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(compute_types_allowed: nil, maximum_builds_allowed: nil) ⇒ BatchRestrictionsProperty
Returns a new instance of BatchRestrictionsProperty.
1037 1038 1039 1040 1041 1042 |
# File 'code_build/cfn_project.rb', line 1037 def initialize(compute_types_allowed: nil, maximum_builds_allowed: nil) @compute_types_allowed = compute_types_allowed Jsii::Type.check_type(@compute_types_allowed, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "computeTypesAllowed") unless @compute_types_allowed.nil? @maximum_builds_allowed = maximum_builds_allowed Jsii::Type.check_type(@maximum_builds_allowed, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "maximumBuildsAllowed") unless @maximum_builds_allowed.nil? end |
Instance Attribute Details
#compute_types_allowed ⇒ Array<String>? (readonly)
An array of strings that specify the compute types that are allowed for the batch build.
See Build environment compute types in the AWS CodeBuild User Guide for these values.
1050 1051 1052 |
# File 'code_build/cfn_project.rb', line 1050 def compute_types_allowed @compute_types_allowed end |
#maximum_builds_allowed ⇒ Numeric? (readonly)
Specifies the maximum number of builds allowed.
1055 1056 1057 |
# File 'code_build/cfn_project.rb', line 1055 def maximum_builds_allowed @maximum_builds_allowed end |
Class Method Details
.jsii_properties ⇒ Object
1057 1058 1059 1060 1061 1062 |
# File 'code_build/cfn_project.rb', line 1057 def self.jsii_properties { :compute_types_allowed => "computeTypesAllowed", :maximum_builds_allowed => "maximumBuildsAllowed", } end |
Instance Method Details
#to_jsii ⇒ Object
1064 1065 1066 1067 1068 1069 1070 1071 |
# File 'code_build/cfn_project.rb', line 1064 def to_jsii result = {} result.merge!({ "computeTypesAllowed" => @compute_types_allowed, "maximumBuildsAllowed" => @maximum_builds_allowed, }) result.compact end |