當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。