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

com.cloudsnorkel.cdk.github.runners.AwsImageBuilderRunnerImageBuilderProps Maven / Gradle / Ivy

Go to download

CDK construct to create GitHub Actions self-hosted runners. A webhook listens to events and creates ephemeral runners on the fly.

There is a newer version: 0.14.6
Show newest version
package com.cloudsnorkel.cdk.github.runners;

/**
 */
@javax.annotation.Generated(value = "jsii-pacmak/1.103.1 (build bef2dea)", date = "2024-09-14T02:42:19.383Z")
@software.amazon.jsii.Jsii(module = com.cloudsnorkel.cdk.github.runners.$Module.class, fqn = "@cloudsnorkel/cdk-github-runners.AwsImageBuilderRunnerImageBuilderProps")
@software.amazon.jsii.Jsii.Proxy(AwsImageBuilderRunnerImageBuilderProps.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public interface AwsImageBuilderRunnerImageBuilderProps extends software.amazon.jsii.JsiiSerializable {

    /**
     * (experimental) Options for fast launch.
     * 

* This is only supported for Windows AMIs. *

* Default: disabled */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) default @org.jetbrains.annotations.Nullable com.cloudsnorkel.cdk.github.runners.FastLaunchOptions getFastLaunchOptions() { return null; } /** * (experimental) The instance type used to build the image. *

* Default: m6i.large */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) default @org.jetbrains.annotations.Nullable software.amazon.awscdk.services.ec2.InstanceType getInstanceType() { return null; } /** * (experimental) Size of volume available for builder instances. This modifies the boot volume size and doesn't add any additional volumes. *

* Use this if you're building images with big components and need more space. *

* Default: default size for AMI (usually 30GB for Linux and 50GB for Windows) */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) default @org.jetbrains.annotations.Nullable software.amazon.awscdk.Size getStorageSize() { return null; } /** * @return a {@link Builder} of {@link AwsImageBuilderRunnerImageBuilderProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) static Builder builder() { return new Builder(); } /** * A builder for {@link AwsImageBuilderRunnerImageBuilderProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static final class Builder implements software.amazon.jsii.Builder { com.cloudsnorkel.cdk.github.runners.FastLaunchOptions fastLaunchOptions; software.amazon.awscdk.services.ec2.InstanceType instanceType; software.amazon.awscdk.Size storageSize; /** * Sets the value of {@link AwsImageBuilderRunnerImageBuilderProps#getFastLaunchOptions} * @param fastLaunchOptions Options for fast launch. * This is only supported for Windows AMIs. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder fastLaunchOptions(com.cloudsnorkel.cdk.github.runners.FastLaunchOptions fastLaunchOptions) { this.fastLaunchOptions = fastLaunchOptions; return this; } /** * Sets the value of {@link AwsImageBuilderRunnerImageBuilderProps#getInstanceType} * @param instanceType The instance type used to build the image. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder instanceType(software.amazon.awscdk.services.ec2.InstanceType instanceType) { this.instanceType = instanceType; return this; } /** * Sets the value of {@link AwsImageBuilderRunnerImageBuilderProps#getStorageSize} * @param storageSize Size of volume available for builder instances. This modifies the boot volume size and doesn't add any additional volumes. * Use this if you're building images with big components and need more space. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder storageSize(software.amazon.awscdk.Size storageSize) { this.storageSize = storageSize; return this; } /** * Builds the configured instance. * @return a new instance of {@link AwsImageBuilderRunnerImageBuilderProps} * @throws NullPointerException if any required attribute was not provided */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override public AwsImageBuilderRunnerImageBuilderProps build() { return new Jsii$Proxy(this); } } /** * An implementation for {@link AwsImageBuilderRunnerImageBuilderProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @software.amazon.jsii.Internal final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements AwsImageBuilderRunnerImageBuilderProps { private final com.cloudsnorkel.cdk.github.runners.FastLaunchOptions fastLaunchOptions; private final software.amazon.awscdk.services.ec2.InstanceType instanceType; private final software.amazon.awscdk.Size storageSize; /** * Constructor that initializes the object based on values retrieved from the JsiiObject. * @param objRef Reference to the JSII managed object. */ protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); this.fastLaunchOptions = software.amazon.jsii.Kernel.get(this, "fastLaunchOptions", software.amazon.jsii.NativeType.forClass(com.cloudsnorkel.cdk.github.runners.FastLaunchOptions.class)); this.instanceType = software.amazon.jsii.Kernel.get(this, "instanceType", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.ec2.InstanceType.class)); this.storageSize = software.amazon.jsii.Kernel.get(this, "storageSize", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.Size.class)); } /** * Constructor that initializes the object based on literal property values passed by the {@link Builder}. */ protected Jsii$Proxy(final Builder builder) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); this.fastLaunchOptions = builder.fastLaunchOptions; this.instanceType = builder.instanceType; this.storageSize = builder.storageSize; } @Override public final com.cloudsnorkel.cdk.github.runners.FastLaunchOptions getFastLaunchOptions() { return this.fastLaunchOptions; } @Override public final software.amazon.awscdk.services.ec2.InstanceType getInstanceType() { return this.instanceType; } @Override public final software.amazon.awscdk.Size getStorageSize() { return this.storageSize; } @Override @software.amazon.jsii.Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); if (this.getFastLaunchOptions() != null) { data.set("fastLaunchOptions", om.valueToTree(this.getFastLaunchOptions())); } if (this.getInstanceType() != null) { data.set("instanceType", om.valueToTree(this.getInstanceType())); } if (this.getStorageSize() != null) { data.set("storageSize", om.valueToTree(this.getStorageSize())); } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); struct.set("fqn", om.valueToTree("@cloudsnorkel/cdk-github-runners.AwsImageBuilderRunnerImageBuilderProps")); struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); obj.set("$jsii.struct", struct); return obj; } @Override public final boolean equals(final Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; AwsImageBuilderRunnerImageBuilderProps.Jsii$Proxy that = (AwsImageBuilderRunnerImageBuilderProps.Jsii$Proxy) o; if (this.fastLaunchOptions != null ? !this.fastLaunchOptions.equals(that.fastLaunchOptions) : that.fastLaunchOptions != null) return false; if (this.instanceType != null ? !this.instanceType.equals(that.instanceType) : that.instanceType != null) return false; return this.storageSize != null ? this.storageSize.equals(that.storageSize) : that.storageSize == null; } @Override public final int hashCode() { int result = this.fastLaunchOptions != null ? this.fastLaunchOptions.hashCode() : 0; result = 31 * result + (this.instanceType != null ? this.instanceType.hashCode() : 0); result = 31 * result + (this.storageSize != null ? this.storageSize.hashCode() : 0); return result; } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy