当前位置: 首页>>代码示例>>Java>>正文


Java UpdateFunctionConfigurationResult类代码示例

本文整理汇总了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();
}
 
开发者ID:sparkdigital,项目名称:aws-lambda-deploy,代码行数:17,代码来源:AWSLambdaDeployer.java

示例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());
}
 
开发者ID:XT-i,项目名称:aws-lambda-jenkins-plugin,代码行数:28,代码来源:LambdaDeployServiceTest.java


注:本文中的com.amazonaws.services.lambda.model.UpdateFunctionConfigurationResult类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。