Interface ICustomResourceProviderProps
Initialization properties for CustomResourceProvider
.
Inherited Members
Namespace: Amazon.CDK
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ICustomResourceProviderProps : ICustomResourceProviderOptions
Syntax (vb)
Public Interface ICustomResourceProviderProps
Inherits ICustomResourceProviderOptions
Remarks
ExampleMetadata: infused
Examples
var provider = CustomResourceProvider.GetOrCreateProvider(this, "Custom::MyCustomResourceType", new CustomResourceProviderProps {
CodeDirectory = $"{__dirname}/my-handler",
Runtime = CustomResourceProviderRuntime.NODEJS_18_X
});
provider.AddToRolePolicy(new Dictionary<string, string> {
{ "Effect", "Allow" },
{ "Action", "s3:GetObject" },
{ "Resource", "*" }
});
Synopsis
Properties
CodeDirectory | A local file system directory with the provider's code. |
Runtime | The AWS Lambda runtime and version to use for the provider. |
Properties
CodeDirectory
A local file system directory with the provider's code.
string CodeDirectory { get; }
Property Value
System.String
Remarks
The code will be bundled into a zip asset and wired to the provider's AWS Lambda function.
Runtime
The AWS Lambda runtime and version to use for the provider.
CustomResourceProviderRuntime Runtime { get; }
Property Value