Tabnine Logo
AWSLambdaClientBuilder
Code IndexAdd Tabnine to your IDE (free)

How to use
AWSLambdaClientBuilder
in
com.amazonaws.services.lambda

Best Java code snippets using com.amazonaws.services.lambda.AWSLambdaClientBuilder (Showing top 13 results out of 315)

origin: aws/aws-sdk-java

/**
 * @return Default client using the {@link com.amazonaws.auth.DefaultAWSCredentialsProviderChain} and
 *         {@link com.amazonaws.regions.DefaultAwsRegionProviderChain} chain
 */
public static AWSLambda defaultClient() {
  return standard().build();
}
origin: tmobile/pacbot

  /**
   * Service function to get RuleAWSLambda Client
   *
   * @author Nidhish
   * @return AWSLambda Client
   */
  public AWSLambda getAWSLambdaClient(final String region) {
    return AWSLambdaClientBuilder.standard().withRegion(region).build();
  }
}
origin: tmobile/pacbot

try{
  if(!skipRegions.contains(region.getName())){
    AWSLambda lamdaClient = AWSLambdaClientBuilder.standard().
         withCredentials(new AWSStaticCredentialsProvider(temporaryCredentials)).withRegion(region.getName()).build();
    ListFunctionsResult listFnRslt ;
    List<FunctionConfiguration> functionsTemp ;
origin: aws/aws-sdk-java

public static AWSLambdaClientBuilder builder() {
  return AWSLambdaClientBuilder.standard();
}
origin: bbilger/jrestless

protected AWSLambda resolveAwsLambdaClient() {
  AWSLambda resolvedClient = awsLambdaClient;
  if (resolvedClient == null && region != null) {
    resolvedClient = AWSLambdaClientBuilder.standard().withRegion(region).build();
  }
  return requireToBuild(resolvedClient, "an awsLambdaClient or a region is required");
}
origin: tmobile/pacbot

AWSLambda awsLambda = AWSLambdaClientBuilder.standard().withRegion(region)
    .withCredentials(new AWSStaticCredentialsProvider(temporaryCredentials)).build();
toReturn.put(PacmanSdkConstants.CLIENT, awsLambda);
awsClientCache.put(clientKey, toReturn);
origin: com.amazonaws/aws-java-sdk-lambda

public static AWSLambdaClientBuilder builder() {
  return AWSLambdaClientBuilder.standard();
}
origin: org.symphonyoss.s2.fugue/aws-fugue

AWSLambdaClientBuilder.standard()
.withRegion(awsClientRegion_)
.build();
origin: Nextdoor/bender

 public AWSLambda newInstance() {
  return AWSLambdaClientBuilder.standard().build();
 }
}
origin: SeanRoy/lambda-maven-plugin

private void initAWSClients() {
  ClientConfiguration clientConfig = clientConfiguration();
  s3Client = (AmazonS3) clientFactory.apply(AmazonS3ClientBuilder.standard(), clientConfig);
  lambdaClient = (AWSLambda) clientFactory.apply(AWSLambdaClientBuilder.standard(), clientConfig);
  snsClient = (AmazonSNS) clientFactory.apply(AmazonSNSClientBuilder.standard(), clientConfig);
  eventsClient = (AmazonCloudWatchEvents) clientFactory.apply(AmazonCloudWatchEventsClientBuilder.standard(), clientConfig);
  dynamoDBStreamsClient = (AmazonDynamoDBStreams) clientFactory.apply(AmazonDynamoDBStreamsClientBuilder.standard(), clientConfig);
  kinesisClient = (AmazonKinesis) clientFactory.apply(AmazonKinesisClientBuilder.standard(), clientConfig);
  cloudWatchEventsClient = (AmazonCloudWatchEvents) clientFactory.apply(AmazonCloudWatchEventsClientBuilder.standard(), clientConfig);
}
origin: com.amazonaws/aws-java-sdk-lambda

/**
 * @return Default client using the {@link com.amazonaws.auth.DefaultAWSCredentialsProviderChain} and
 *         {@link com.amazonaws.regions.DefaultAwsRegionProviderChain} chain
 */
public static AWSLambda defaultClient() {
  return standard().build();
}
origin: jenkinsci/pipeline-aws-plugin

@Override
protected Object run() throws Exception {
  TaskListener listener = this.getContext().get(TaskListener.class);
  AWSLambda client = AWSClientFactory.create(AWSLambdaClientBuilder.standard(), this.getContext());
  String functionName = this.step.getFunctionName();
  listener.getLogger().format("Invoke Lambda function %s%n", functionName);
  InvokeRequest request = new InvokeRequest();
  request.withFunctionName(functionName);
  request.withPayload(this.step.getPayloadAsString());
  request.withLogType(LogType.Tail);
  InvokeResult result = client.invoke(request);
  listener.getLogger().append(this.getLogResult(result));
  String functionError = result.getFunctionError();
  if (functionError != null) {
    throw new RuntimeException("Invoke lambda failed! " + this.getPayloadAsString(result));
  }
  if (this.step.isReturnValueAsString()) {
    return this.getPayloadAsString(result);
  } else {
    return JsonUtils.fromString(this.getPayloadAsString(result));
  }
}
origin: Nextdoor/bender

 public AWSLambda newInstance() {
  return AWSLambdaClientBuilder.standard().build();
 }
}
com.amazonaws.services.lambdaAWSLambdaClientBuilder

Javadoc

Fluent builder for com.amazonaws.services.lambda.AWSLambda. Use of the builder is preferred over using constructors of the client class.

Most used methods

  • standard
  • build
    Construct a synchronous implementation of AWSLambda using the current builder configuration.
  • withRegion
  • withCredentials
  • <init>
  • defaultClient

Popular in Java

  • Creating JSON documents from java classes using gson
  • setContentView (Activity)
  • findViewById (Activity)
  • scheduleAtFixedRate (Timer)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now