本文整理汇总了Java中com.amazonaws.services.lambda.model.UpdateFunctionConfigurationResult类的典型用法代码示例。如果您正苦于以下问题:Java UpdateFunctionConfigurationResult类的具体用法?Java UpdateFunctionConfigurationResult怎么用?Java UpdateFunctionConfigurationResult使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
UpdateFunctionConfigurationResult类属于com.amazonaws.services.lambda.model包,在下文中一共展示了UpdateFunctionConfigurationResult类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: updateLambdaConfiguration
import com.amazonaws.services.lambda.model.UpdateFunctionConfigurationResult; //导入依赖的package包/类
private String updateLambdaConfiguration(AWSLambdaClient lambdaClient,
String functionName, String description, String handlerMethod) {
UpdateFunctionConfigurationRequest request = new UpdateFunctionConfigurationRequest();
request.setDescription(description);
request.setFunctionName(functionName);
request.setHandler(handlerMethod);
request.setMemorySize(memory);
request.setRole(lambdaRoleARN);
request.setTimeout(handlerTimeout);
UpdateFunctionConfigurationResult result = lambdaClient
.updateFunctionConfiguration(request);
return result.getFunctionArn();
}
示例2: setUp
import com.amazonaws.services.lambda.model.UpdateFunctionConfigurationResult; //导入依赖的package包/类
@Before
public void setUp() throws Exception {
description = "description";
functionName = "function";
handler = "function.handler";
memory = 1024;
role = "role";
runtime = "nodejs";
publish = Boolean.FALSE;
functionVersion = null;
createAlias = Boolean.FALSE;
alias = null;
timeout = 30;
subnets = new ArrayList<>();
securityGroups = new ArrayList<>();
kmsArn = "arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012";
environment = new HashMap<>();
environment.put("key", "value");
deadLetterQueueArn = "arn:aws:sqs:us-east-1:123456789012:queueName";
lambdaDeployService = new LambdaDeployService(awsLambdaClient, jenkinsLogger);
when(awsLambdaClient.updateFunctionConfiguration(any(UpdateFunctionConfigurationRequest.class)))
.thenReturn(new UpdateFunctionConfigurationResult());
when(awsLambdaClient.updateFunctionCode(any(UpdateFunctionCodeRequest.class)))
.thenReturn(new UpdateFunctionCodeResult());
when(awsLambdaClient.createFunction(any(CreateFunctionRequest.class)))
.thenReturn(new CreateFunctionResult());
}