if (context.testExpression("TaskDefinitionArn", targetDepth)) { context.nextToken(); ecsParametersBuilder.taskDefinitionArn(context.getUnmarshaller(String.class).unmarshall(context)); ecsParametersBuilder.taskCount(context.getUnmarshaller(Integer.class).unmarshall(context)); return ecsParametersBuilder.build();
/** * <p> * Use this structure if the ECS task uses the <code>awsvpc</code> network mode. This structure specifies the * VPC subnets and security groups associated with the task, and whether a public IP address is to be used. This * structure is required if <code>LaunchType</code> is <code>FARGATE</code> because the <code>awsvpc</code> mode * is required for Fargate tasks. * </p> * <p> * If you specify <code>NetworkConfiguration</code> when the target ECS task does not use the * <code>awsvpc</code> network mode, the task fails. * </p> * This is a convenience that creates an instance of the {@link NetworkConfiguration.Builder} avoiding the need * to create one manually via {@link NetworkConfiguration#builder()}. * * When the {@link Consumer} completes, {@link NetworkConfiguration.Builder#build()} is called immediately and * its result is passed to {@link #networkConfiguration(NetworkConfiguration)}. * * @param networkConfiguration * a consumer that will call methods on {@link NetworkConfiguration.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #networkConfiguration(NetworkConfiguration) */ default Builder networkConfiguration(Consumer<NetworkConfiguration.Builder> networkConfiguration) { return networkConfiguration(NetworkConfiguration.builder().applyMutation(networkConfiguration).build()); }
/** * <p> * Contains the Amazon ECS task definition and task count to be used, if the event target is an Amazon ECS task. * For more information about Amazon ECS tasks, see <a * href="http://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_defintions.html">Task Definitions </a> * in the <i>Amazon EC2 Container Service Developer Guide</i>. * </p> * This is a convenience that creates an instance of the {@link EcsParameters.Builder} avoiding the need to * create one manually via {@link EcsParameters#builder()}. * * When the {@link Consumer} completes, {@link EcsParameters.Builder#build()} is called immediately and its * result is passed to {@link #ecsParameters(EcsParameters)}. * * @param ecsParameters * a consumer that will call methods on {@link EcsParameters.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #ecsParameters(EcsParameters) */ default Builder ecsParameters(Consumer<EcsParameters.Builder> ecsParameters) { return ecsParameters(EcsParameters.builder().applyMutation(ecsParameters).build()); } }
/** * <p> * Contains the Amazon ECS task definition and task count to be used, if the event target is an Amazon ECS task. * For more information about Amazon ECS tasks, see <a * href="http://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_defintions.html">Task Definitions </a> * in the <i>Amazon EC2 Container Service Developer Guide</i>. * </p> * This is a convenience that creates an instance of the {@link EcsParameters.Builder} avoiding the need to * create one manually via {@link EcsParameters#builder()}. * * When the {@link Consumer} completes, {@link EcsParameters.Builder#build()} is called immediately and its * result is passed to {@link #ecsParameters(EcsParameters)}. * * @param ecsParameters * a consumer that will call methods on {@link EcsParameters.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #ecsParameters(EcsParameters) */ default Builder ecsParameters(Consumer<EcsParameters.Builder> ecsParameters) { return ecsParameters(EcsParameters.builder().applyMutation(ecsParameters).build()); }
/** * <p> * Use this structure if the ECS task uses the <code>awsvpc</code> network mode. This structure specifies the * VPC subnets and security groups associated with the task, and whether a public IP address is to be used. This * structure is required if <code>LaunchType</code> is <code>FARGATE</code> because the <code>awsvpc</code> mode * is required for Fargate tasks. * </p> * <p> * If you specify <code>NetworkConfiguration</code> when the target ECS task does not use the * <code>awsvpc</code> network mode, the task fails. * </p> * This is a convenience that creates an instance of the {@link NetworkConfiguration.Builder} avoiding the need * to create one manually via {@link NetworkConfiguration#builder()}. * * When the {@link Consumer} completes, {@link NetworkConfiguration.Builder#build()} is called immediately and * its result is passed to {@link #networkConfiguration(NetworkConfiguration)}. * * @param networkConfiguration * a consumer that will call methods on {@link NetworkConfiguration.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #networkConfiguration(NetworkConfiguration) */ default Builder networkConfiguration(Consumer<NetworkConfiguration.Builder> networkConfiguration) { return networkConfiguration(NetworkConfiguration.builder().applyMutation(networkConfiguration).build()); }
/** * <p> * Contains the Amazon ECS task definition and task count to be used, if the event target is an Amazon ECS task. * For more information about Amazon ECS tasks, see <a * href="http://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_defintions.html">Task Definitions </a> * in the <i>Amazon EC2 Container Service Developer Guide</i>. * </p> * This is a convenience that creates an instance of the {@link EcsParameters.Builder} avoiding the need to * create one manually via {@link EcsParameters#builder()}. * * When the {@link Consumer} completes, {@link EcsParameters.Builder#build()} is called immediately and its * result is passed to {@link #ecsParameters(EcsParameters)}. * * @param ecsParameters * a consumer that will call methods on {@link EcsParameters.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #ecsParameters(EcsParameters) */ default Builder ecsParameters(Consumer<EcsParameters.Builder> ecsParameters) { return ecsParameters(EcsParameters.builder().applyMutation(ecsParameters).build()); }