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

com.cloudsnorkel.cdk.github.runners.Architecture 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;

/**
 * (experimental) CPU architecture enum for an image.
 */
@javax.annotation.Generated(value = "jsii-pacmak/1.103.1 (build bef2dea)", date = "2024-09-14T02:42:19.381Z")
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@software.amazon.jsii.Jsii(module = com.cloudsnorkel.cdk.github.runners.$Module.class, fqn = "@cloudsnorkel/cdk-github-runners.Architecture")
public class Architecture extends software.amazon.jsii.JsiiObject {

    protected Architecture(final software.amazon.jsii.JsiiObjectRef objRef) {
        super(objRef);
    }

    protected Architecture(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
        super(initializationMode);
    }

    static {
        ARM64 = software.amazon.jsii.JsiiObject.jsiiStaticGet(com.cloudsnorkel.cdk.github.runners.Architecture.class, "ARM64", software.amazon.jsii.NativeType.forClass(com.cloudsnorkel.cdk.github.runners.Architecture.class));
        X86_64 = software.amazon.jsii.JsiiObject.jsiiStaticGet(com.cloudsnorkel.cdk.github.runners.Architecture.class, "X86_64", software.amazon.jsii.NativeType.forClass(com.cloudsnorkel.cdk.github.runners.Architecture.class));
    }

    /**
     * (experimental) Checks if a given EC2 instance type matches this architecture.
     * 

* @param instanceType instance type to check. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.Boolean instanceTypeMatch(final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.ec2.InstanceType instanceType) { return software.amazon.jsii.Kernel.call(this, "instanceTypeMatch", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class), new Object[] { java.util.Objects.requireNonNull(instanceType, "instanceType is required") }); } /** * (experimental) Checks if the given architecture is the same as this one. *

* @param arch architecture to compare. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.Boolean is(final @org.jetbrains.annotations.NotNull com.cloudsnorkel.cdk.github.runners.Architecture arch) { return software.amazon.jsii.Kernel.call(this, "is", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class), new Object[] { java.util.Objects.requireNonNull(arch, "arch is required") }); } /** * (experimental) Checks if this architecture is in a given list. *

* @param arches architectures to check. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.Boolean isIn(final @org.jetbrains.annotations.NotNull java.util.List arches) { return software.amazon.jsii.Kernel.call(this, "isIn", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class), new Object[] { java.util.Objects.requireNonNull(arches, "arches is required") }); } /** * (experimental) ARM64. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public final static com.cloudsnorkel.cdk.github.runners.Architecture ARM64; /** * (experimental) X86_64. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public final static com.cloudsnorkel.cdk.github.runners.Architecture X86_64; /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String getName() { return software.amazon.jsii.Kernel.get(this, "name", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy