CustomResourceProviderProps

class aws_cdk.core.CustomResourceProviderProps(*, code_directory, runtime, environment=None, memory_size=None, policy_statements=None, timeout=None)

Bases: object

(experimental) Initialization properties for CustomResourceProvider.

Parameters
  • code_directory (str) – (experimental) A local file system directory with the provider’s code. The code will be bundled into a zip asset and wired to the provider’s AWS Lambda function.

  • runtime (CustomResourceProviderRuntime) – (experimental) The AWS Lambda runtime and version to use for the provider.

  • environment (Optional[Mapping[str, str]]) – (experimental) Key-value pairs that are passed to Lambda as Environment. Default: - No environment variables.

  • memory_size (Optional[Size]) – (experimental) The amount of memory that your function has access to. Increasing the function’s memory also increases its CPU allocation. Default: Size.mebibytes(128)

  • policy_statements (Optional[List[Any]]) – (experimental) A set of IAM policy statements to include in the inline policy of the provider’s lambda function. Default: - no additional inline policy

  • timeout (Optional[Duration]) – (experimental) AWS Lambda timeout for the provider. Default: Duration.minutes(15)

Stability

experimental

Attributes

code_directory

(experimental) A local file system directory with the provider’s code.

The code will be bundled into a zip asset and wired to the provider’s AWS Lambda function.

Stability

experimental

Return type

str

environment

(experimental) Key-value pairs that are passed to Lambda as Environment.

Default
  • No environment variables.

Stability

experimental

Return type

Optional[Mapping[str, str]]

memory_size

(experimental) The amount of memory that your function has access to.

Increasing the function’s memory also increases its CPU allocation.

Default

Size.mebibytes(128)

Stability

experimental

Return type

Optional[Size]

policy_statements

(experimental) A set of IAM policy statements to include in the inline policy of the provider’s lambda function.

Default
  • no additional inline policy

Stability

experimental

Example:

# Example automatically generated. See https://github.com/aws/jsii/issues/826
policyStatements: [ { Effect: 'Allow', Action: 's3:PutObject*', Resource: '*' } ]
Return type

Optional[List[Any]]

runtime

(experimental) The AWS Lambda runtime and version to use for the provider.

Stability

experimental

Return type

CustomResourceProviderRuntime

timeout

(experimental) AWS Lambda timeout for the provider.

Default

Duration.minutes(15)

Stability

experimental

Return type

Optional[Duration]