Show / Hide Table of Contents

Interface ICustomResourceProviderProps

Initialization properties for CustomResourceProvider.

Inherited Members
ICustomResourceProviderOptions.Description
ICustomResourceProviderOptions.Environment
ICustomResourceProviderOptions.MemorySize
ICustomResourceProviderOptions.PolicyStatements
ICustomResourceProviderOptions.Timeout
ICustomResourceProviderOptions.UseCfnResponseWrapper
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

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

CustomResourceProviderRuntime

Remarks

ExampleMetadata: infused

Back to top Generated by DocFX