public class LambdaCloud
extends hudson.slaves.Cloud
provision(Label label, int excessWorkload)
on this
class to create new nodes.Modifier and Type | Class and Description |
---|---|
static class |
LambdaCloud.LambdaCloudDescriptorImpl |
Constructor and Description |
---|
LambdaCloud(String name,
String credentialsId,
String region)
Constructor for LambdaCloud.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canProvision(hudson.model.Label label) |
int |
getAgentTimeout()
Getter for the field
agentTimeout . |
static LambdaCloud |
getByName(String name) |
com.amazonaws.services.lambda.AWSLambda |
getClient()
Getter for the field
client . |
static int |
getDefaultAgentTimeout() |
static String |
getDefaultRegion() |
List<LambdaFunction> |
getFunctions() |
String |
getJenkinsUrl()
Getter for the field
jenkinsUrl . |
int |
getMaxConcurrentExecutions()
Getter for the field
maxConcurrentExecutions . |
String |
getRegion()
Getter for the field
region . |
Collection<hudson.slaves.NodeProvisioner.PlannedNode> |
provision(hudson.model.Label label,
int excessWorkload) |
void |
setAgentTimeout(int agentTimeout)
Setter for the field
agentTimeout . |
void |
setFunctions(List<LambdaFunction> functions) |
void |
setJenkinsUrl(String jenkinsUrl)
Setter for the field
jenkinsUrl . |
void |
setMaxConcurrentExecutions(int maxConcurrentExecutions)
Setter for the field
maxConcurrentExecutions . |
String |
toString() |
all, checkPermission, getACL, getDescriptor, getDisplayName, getSearchUrl, hasPermission
@DataBoundConstructor public LambdaCloud(@Nonnull String name, @Nullable String credentialsId, @Nonnull String region) throws InterruptedException
name
- the name of the cloud or null if you want it
auto-generated.credentialsId
- the credentials ID to use or null/empty if pulled from
environment.region
- the AWS region to use.InterruptedException
- if any.@Nonnull public static LambdaCloud getByName(@Nonnull String name) throws IllegalArgumentException
IllegalArgumentException
public static String getDefaultRegion()
public static int getDefaultAgentTimeout()
@Nonnull public String getJenkinsUrl()
jenkinsUrl
.String
object.@DataBoundSetter public void setJenkinsUrl(String jenkinsUrl)
jenkinsUrl
.jenkinsUrl
- a String
object.@Nonnull public int getAgentTimeout()
agentTimeout
.@DataBoundSetter public void setAgentTimeout(int agentTimeout)
agentTimeout
.agentTimeout
- a int.@Nonnull public int getMaxConcurrentExecutions()
maxConcurrentExecutions
.@DataBoundSetter public void setMaxConcurrentExecutions(int maxConcurrentExecutions)
maxConcurrentExecutions
.maxConcurrentExecutions
- a int.@Nonnull public List<LambdaFunction> getFunctions()
@DataBoundSetter public void setFunctions(List<LambdaFunction> functions)
public com.amazonaws.services.lambda.AWSLambda getClient()
client
.AWSLambda
object.public boolean canProvision(hudson.model.Label label)
canProvision
in class hudson.slaves.Cloud
public Collection<hudson.slaves.NodeProvisioner.PlannedNode> provision(hudson.model.Label label, int excessWorkload)
provision
in class hudson.slaves.Cloud
Copyright © 2016–2020. All rights reserved.