VOOZH about

URL: https://www.nuget.org/packages/LambdaSharp.CustomResource/

⇱ NuGet Gallery | LambdaSharp.CustomResource 0.8.4.1




👁 Image
LambdaSharp.CustomResource 0.8.4.1

dotnet add package LambdaSharp.CustomResource --version 0.8.4.1
 
 
NuGet\Install-Package LambdaSharp.CustomResource -Version 0.8.4.1
 
 
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="LambdaSharp.CustomResource" Version="0.8.4.1" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="LambdaSharp.CustomResource" Version="0.8.4.1" />
 
Directory.Packages.props
<PackageReference Include="LambdaSharp.CustomResource" />
 
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add LambdaSharp.CustomResource --version 0.8.4.1
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: LambdaSharp.CustomResource, 0.8.4.1"
 
 
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package LambdaSharp.CustomResource@0.8.4.1
 
 
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=LambdaSharp.CustomResource&version=0.8.4.1
 
Install as a Cake Addin
#tool nuget:?package=LambdaSharp.CustomResource&version=0.8.4.1
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

LambdaSharp.CustomResource

This package contains interfaces and classes used for building Lambda functions on AWS to manage custom resources in CloudFormation. This package extends the functionality provided the LambdaSharp package.

Visit LambdaSharp.NET to learn more about building serverless .NET solutions on AWS.

ALambdaCustomResourceFunction<TProperties, TAttributes>

The ALambdaCustomResourceFunction<TProperties, TAttributes> base class implements the CloudFormation protocol for custom resources. The TProperties type parameter defines the properties for initializing the custom resource. The TAttributes type parameter defines the attributes of the created resource that can be accessed by CloudFormation.

public sealed class Function : ALambdaCustomResourceFunction<ResourceProperties, ResourceAttributes> {

 //--- Constructors ---
 public Function() : base(new LambdaSharp.Serialization.LambdaSystemTextJsonSerializer()) { }

 //--- Methods ---
 public override async Task InitializeAsync(LambdaConfig config) {

 // TO-DO: add function initialization and reading configuration settings
 }

 public override async Task<Response<ResourceAttributes>> ProcessCreateResourceAsync(Request<ResourceProperties> request, CancellationToken cancellationToken) {

 // TO-DO: create custom resource using resource properties from request

 return new Response<ResourceAttributes> {

 // TO-DO: assign a physical resource ID for custom resource
 PhysicalResourceId = "MyResource:123",

 // TO-DO: set response attributes
 Attributes = new ResourceAttributes { }
 };
 }

 public override async Task<Response<ResourceAttributes>> ProcessDeleteResourceAsync(Request<ResourceProperties> request, CancellationToken cancellationToken) {

 // TO-DO: delete custom resource identified by PhysicalResourceId in request

 return new Response<ResourceAttributes>();
 }

 public override async Task<Response<ResourceAttributes>> ProcessUpdateResourceAsync(Request<ResourceProperties> request, CancellationToken cancellationToken) {

 // TO-DO: update custom resource using resource properties from request

 return new Response<ResourceAttributes> {

 // TO-DO: optionally assign a new physical resource ID to trigger deletion of the previous custom resource
 PhysicalResourceId = "MyResource:123",

 // TO-DO: set response attributes
 Attributes = new ResourceAttributes { }
 };
 }
}

License

Copyright (c) 2018-2022 LambdaSharp (λ#)

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Product Versions Compatible and additional computed target framework versions.
.NET net6.0 net6.0 is compatible.  net6.0-android net6.0-android was computed.  net6.0-ios net6.0-ios was computed.  net6.0-maccatalyst net6.0-maccatalyst was computed.  net6.0-macos net6.0-macos was computed.  net6.0-tvos net6.0-tvos was computed.  net6.0-windows net6.0-windows was computed.  net7.0 net7.0 was computed.  net7.0-android net7.0-android was computed.  net7.0-ios net7.0-ios was computed.  net7.0-maccatalyst net7.0-maccatalyst was computed.  net7.0-macos net7.0-macos was computed.  net7.0-tvos net7.0-tvos was computed.  net7.0-windows net7.0-windows was computed.  net8.0 net8.0 was computed.  net8.0-android net8.0-android was computed.  net8.0-browser net8.0-browser was computed.  net8.0-ios net8.0-ios was computed.  net8.0-maccatalyst net8.0-maccatalyst was computed.  net8.0-macos net8.0-macos was computed.  net8.0-tvos net8.0-tvos was computed.  net8.0-windows net8.0-windows was computed.  net9.0 net9.0 was computed.  net9.0-android net9.0-android was computed.  net9.0-browser net9.0-browser was computed.  net9.0-ios net9.0-ios was computed.  net9.0-maccatalyst net9.0-maccatalyst was computed.  net9.0-macos net9.0-macos was computed.  net9.0-tvos net9.0-tvos was computed.  net9.0-windows net9.0-windows was computed.  net10.0 net10.0 was computed.  net10.0-android net10.0-android was computed.  net10.0-browser net10.0-browser was computed.  net10.0-ios net10.0-ios was computed.  net10.0-maccatalyst net10.0-maccatalyst was computed.  net10.0-macos net10.0-macos was computed.  net10.0-tvos net10.0-tvos was computed.  net10.0-windows net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on LambdaSharp.CustomResource:

Package Downloads
LambdaSharp.Finalizer

Serverless .NET for AWS - Module Finalizer Library

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.8.4.1 569 4/18/2023
0.8.4 21,073 3/10/2022
0.8.3.5 890 3/4/2022
0.8.3.4 692 7/15/2021
0.8.3.3 623 7/15/2021
0.8.3.2 669 6/17/2021
0.8.3 606 5/19/2021
0.8.2.4 684 4/30/2021
0.8.2.3 631 4/2/2021
0.8.2.2 673 3/18/2021
0.8.2 6,299 2/16/2021