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

software.amazon.awscdk.services.lambda.S3Code Maven / Gradle / Ivy

package software.amazon.awscdk.services.lambda;

/**
 * Lambda code from an S3 archive.
 */
@javax.annotation.Generated(value = "jsii-pacmak/0.7.15 (build e429c41)", date = "2019-03-20T13:00:17.327Z")
@software.amazon.jsii.Jsii(module = software.amazon.awscdk.services.lambda.$Module.class, fqn = "@aws-cdk/aws-lambda.S3Code")
public class S3Code extends software.amazon.awscdk.services.lambda.Code {
    protected S3Code(final software.amazon.jsii.JsiiObject.InitializationMode mode) {
        super(mode);
    }
    public S3Code(final software.amazon.awscdk.services.s3.IBucket bucket, final java.lang.String key, @javax.annotation.Nullable final java.lang.String objectVersion) {
        super(software.amazon.jsii.JsiiObject.InitializationMode.Jsii);
        software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, java.util.stream.Stream.concat(java.util.stream.Stream.concat(java.util.stream.Stream.of(java.util.Objects.requireNonNull(bucket, "bucket is required")), java.util.stream.Stream.of(java.util.Objects.requireNonNull(key, "key is required"))), java.util.stream.Stream.of(objectVersion)).toArray());
    }
    public S3Code(final software.amazon.awscdk.services.s3.IBucket bucket, final java.lang.String key) {
        super(software.amazon.jsii.JsiiObject.InitializationMode.Jsii);
        software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, java.util.stream.Stream.concat(java.util.stream.Stream.of(java.util.Objects.requireNonNull(bucket, "bucket is required")), java.util.stream.Stream.of(java.util.Objects.requireNonNull(key, "key is required"))).toArray());
    }

    /**
     * Determines whether this Code is inline code or not.
     */
    @Override
    public java.lang.Boolean getIsInline() {
        return this.jsiiGet("isInline", java.lang.Boolean.class);
    }

    public java.lang.String getKey() {
        return this.jsiiGet("key", java.lang.String.class);
    }

    public void setKey(final java.lang.String value) {
        this.jsiiSet("key", java.util.Objects.requireNonNull(value, "key is required"));
    }

    @javax.annotation.Nullable
    public java.lang.String getObjectVersion() {
        return this.jsiiGet("objectVersion", java.lang.String.class);
    }

    public void setObjectVersion(@javax.annotation.Nullable final java.lang.String value) {
        this.jsiiSet("objectVersion", value);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy