All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pepperize.cdk.autoscaling_gitlab_runner.GitlabRunnerAutoscaling Maven / Gradle / Ivy

There is a newer version: 0.2.627
Show newest version
package com.pepperize.cdk.autoscaling_gitlab_runner;

/**
 * The Gitlab Runner autoscaling on EC2 by Docker Machine.
 * 

* Example: *

*

 * <caption>Provisioning a basic Runner</caption>
 * const app = new cdk.App();
 * const stack = new cdk.Stack(app, "RunnerStack", {
 * env: {
 * account: "000000000000",
 * region: "us-east-1",
 * }
 * });
 * const token = new StringParameter(stack, "imported-token", {
 * parameterName: "/gitlab-runner/token1",
 * stringValue: gitlabToken,
 * type: ParameterType.SECURE_STRING,
 * tier: ParameterTier.STANDARD,
 * });
 * new GitlabRunnerAutoscaling(stack, "GitlabRunner", {
 * runners: [{
 * token: "xxxxxxxxxxxxxxxxxxxx"
 * }],
 * });
 * 
*/ @javax.annotation.Generated(value = "jsii-pacmak/1.98.0 (build 00b106d)", date = "2024-05-01T02:44:42.312Z") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @software.amazon.jsii.Jsii(module = com.pepperize.cdk.autoscaling_gitlab_runner.$Module.class, fqn = "@pepperize/cdk-autoscaling-gitlab-runner.GitlabRunnerAutoscaling") public class GitlabRunnerAutoscaling extends software.constructs.Construct { protected GitlabRunnerAutoscaling(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } protected GitlabRunnerAutoscaling(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { super(initializationMode); } /** * @param scope This parameter is required. * @param id This parameter is required. * @param props This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public GitlabRunnerAutoscaling(final @org.jetbrains.annotations.NotNull software.amazon.awscdk.Stack scope, final @org.jetbrains.annotations.NotNull java.lang.String id, final @org.jetbrains.annotations.NotNull com.pepperize.cdk.autoscaling_gitlab_runner.GitlabRunnerAutoscalingProps props) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(scope, "scope is required"), java.util.Objects.requireNonNull(id, "id is required"), java.util.Objects.requireNonNull(props, "props is required") }); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.s3.IBucket getCacheBucket() { return software.amazon.jsii.Kernel.get(this, "cacheBucket", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.s3.IBucket.class)); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.NotNull com.pepperize.cdk.autoscaling_gitlab_runner.GitlabRunnerAutoscalingManager getManager() { return software.amazon.jsii.Kernel.get(this, "manager", software.amazon.jsii.NativeType.forClass(com.pepperize.cdk.autoscaling_gitlab_runner.GitlabRunnerAutoscalingManager.class)); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.NotNull com.pepperize.cdk.autoscaling_gitlab_runner.Network getNetwork() { return software.amazon.jsii.Kernel.get(this, "network", software.amazon.jsii.NativeType.forClass(com.pepperize.cdk.autoscaling_gitlab_runner.Network.class)); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.NotNull java.util.List getRunners() { return java.util.Collections.unmodifiableList(software.amazon.jsii.Kernel.get(this, "runners", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(com.pepperize.cdk.autoscaling_gitlab_runner.GitlabRunnerAutoscalingJobRunner.class)))); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.Nullable java.lang.Number getCheckInterval() { return software.amazon.jsii.Kernel.get(this, "checkInterval", software.amazon.jsii.NativeType.forClass(java.lang.Number.class)); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.Nullable java.lang.Number getConcurrent() { return software.amazon.jsii.Kernel.get(this, "concurrent", software.amazon.jsii.NativeType.forClass(java.lang.Number.class)); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.Nullable java.lang.String getLogFormat() { return software.amazon.jsii.Kernel.get(this, "logFormat", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.Nullable java.lang.String getLogLevel() { return software.amazon.jsii.Kernel.get(this, "logLevel", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); } /** * A fluent builder for {@link com.pepperize.cdk.autoscaling_gitlab_runner.GitlabRunnerAutoscaling}. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static final class Builder implements software.amazon.jsii.Builder { /** * @return a new instance of {@link Builder}. * @param scope This parameter is required. * @param id This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static Builder create(final software.amazon.awscdk.Stack scope, final java.lang.String id) { return new Builder(scope, id); } private final software.amazon.awscdk.Stack scope; private final java.lang.String id; private final com.pepperize.cdk.autoscaling_gitlab_runner.GitlabRunnerAutoscalingProps.Builder props; private Builder(final software.amazon.awscdk.Stack scope, final java.lang.String id) { this.scope = scope; this.id = id; this.props = new com.pepperize.cdk.autoscaling_gitlab_runner.GitlabRunnerAutoscalingProps.Builder(); } /** * The check_interval option defines how often the runner should check GitLab for new jobs| in seconds. *

* Default: 0 *

* @return {@code this} * @param checkInterval The check_interval option defines how often the runner should check GitLab for new jobs| in seconds. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder checkInterval(final java.lang.Number checkInterval) { this.props.checkInterval(checkInterval); return this; } /** * The limit of the jobs that can be run concurrently across all runners (concurrent). *

* Default: 10 *

* @return {@code this} * @param concurrent The limit of the jobs that can be run concurrently across all runners (concurrent). This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder concurrent(final java.lang.Number concurrent) { this.props.concurrent(concurrent); return this; } /** * The log format. *

* Default: "runner" *

* @return {@code this} * @param logFormat The log format. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder logFormat(final java.lang.String logFormat) { this.props.logFormat(logFormat); return this; } /** * The log_level. *

* Default: "info" *

* @return {@code this} * @param logLevel The log_level. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder logLevel(final java.lang.String logLevel) { this.props.logLevel(logLevel); return this; } /** * The runner EC2 instances settings. *

* At least one runner should be set up. *

* @return {@code this} * @param runners The runner EC2 instances settings. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder runners(final java.util.List runners) { this.props.runners(runners); return this; } /** * @return {@code this} * @param cache This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder cache(final com.pepperize.cdk.autoscaling_gitlab_runner.GitlabRunnerAutoscalingCacheProps cache) { this.props.cache(cache); return this; } /** * The manager EC2 instance configuration. *

* If not set, the defaults will be used. *

* @return {@code this} * @param manager The manager EC2 instance configuration. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder manager(final com.pepperize.cdk.autoscaling_gitlab_runner.GitlabRunnerAutoscalingManagerBaseProps manager) { this.props.manager(manager); return this; } /** * The network configuration for the Runner. *

* If not set, the defaults will be used. *

* @return {@code this} * @param network The network configuration for the Runner. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder network(final com.pepperize.cdk.autoscaling_gitlab_runner.NetworkProps network) { this.props.network(network); return this; } /** * @return a newly built instance of {@link com.pepperize.cdk.autoscaling_gitlab_runner.GitlabRunnerAutoscaling}. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override public com.pepperize.cdk.autoscaling_gitlab_runner.GitlabRunnerAutoscaling build() { return new com.pepperize.cdk.autoscaling_gitlab_runner.GitlabRunnerAutoscaling( this.scope, this.id, this.props.build() ); } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy