CustomResourceProviderProps

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

Bases: object

__init__(*, code_directory, runtime, memory_size=None, policy_statements=None, timeout=None)

Initialization properties for CustomResourceProvider.

Parameters
  • code_directory (str) – 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) – The AWS Lambda runtime and version to use for the provider.

  • memory_size (Optional[Size]) – 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]]) – 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]) – AWS Lambda timeout for the provider. Default: Duration.minutes(15)

stability :stability: experimental

Return type

None

Attributes

code_directory

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 :stability: experimental

Return type

str

memory_size

The amount of memory that your function has access to.

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

default :default: Size.mebibytes(128)

stability :stability: experimental

Return type

Optional[Size]

policy_statements

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

default :default: - no additional inline policy

stability :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

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

stability :stability: experimental

Return type

CustomResourceProviderRuntime

timeout

AWS Lambda timeout for the provider.

default :default: Duration.minutes(15)

stability :stability: experimental

Return type

Optional[Duration]