Exemple #1
0
 /// <summary>
 /// Creates a new custom resource handler with the provided create, update, and delete functions.
 /// The specified ICustomResourceHelper is used during execution.
 /// </summary>
 /// <param name="create"></param>
 /// <param name="update"></param>
 /// <param name="delete"></param>
 /// <param name="helper">The custom resource helper that will fix up the json that is being uploaded
 /// to S3 to signal completion, as well as perform that upload to the presigned url.</param>
 public CustomResourceFactory(
     Func <CustomResourceRequest, ILambdaContext, Task <CustomResourceResponse> > create,
     Func <CustomResourceRequest, ILambdaContext, Task <CustomResourceResponse> > update,
     Func <CustomResourceRequest, ILambdaContext, Task <CustomResourceResponse> > delete,
     ICustomResourceHelper helper
     ) : base(helper)
 {
     this._CreateAsync = create ?? throw new ArgumentNullException("create");
     this._DeleteAsync = delete ?? throw new ArgumentNullException("delete");
     this._UpdateAsync = update ?? throw new ArgumentNullException("update");
 }
Exemple #2
0
 public CustomResourceHandler(ICustomResourceHelper helper)
 {
     this.helper = helper ?? throw new ArgumentNullException("helper");
 }
Exemple #3
0
 public CustomResourceHandler()
 {
     this.helper = new DefaultCustomResourceHelper();
 }