CfnFunctionDefinitionVersionProps
- class aws_cdk.aws_greengrass.CfnFunctionDefinitionVersionProps(*, function_definition_id, functions, default_config=None)
Bases:
object
Properties for defining a
CfnFunctionDefinitionVersion
.- Parameters:
function_definition_id (
str
) – The ID of the function definition associated with this version. This value is a GUID.functions (
Union
[IResolvable
,Sequence
[Union
[IResolvable
,FunctionProperty
,Dict
[str
,Any
]]]]) – The functions in this version.default_config (
Union
[IResolvable
,DefaultConfigProperty
,Dict
[str
,Any
],None
]) – The default configuration that applies to all Lambda functions in the group. Individual Lambda functions can override these settings.
- Link:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk.aws_greengrass as greengrass # variables: Any cfn_function_definition_version_props = greengrass.CfnFunctionDefinitionVersionProps( function_definition_id="functionDefinitionId", functions=[greengrass.CfnFunctionDefinitionVersion.FunctionProperty( function_arn="functionArn", function_configuration=greengrass.CfnFunctionDefinitionVersion.FunctionConfigurationProperty( encoding_type="encodingType", environment=greengrass.CfnFunctionDefinitionVersion.EnvironmentProperty( access_sysfs=False, execution=greengrass.CfnFunctionDefinitionVersion.ExecutionProperty( isolation_mode="isolationMode", run_as=greengrass.CfnFunctionDefinitionVersion.RunAsProperty( gid=123, uid=123 ) ), resource_access_policies=[greengrass.CfnFunctionDefinitionVersion.ResourceAccessPolicyProperty( resource_id="resourceId", # the properties below are optional permission="permission" )], variables=variables ), exec_args="execArgs", executable="executable", memory_size=123, pinned=False, timeout=123 ), id="id" )], # the properties below are optional default_config=greengrass.CfnFunctionDefinitionVersion.DefaultConfigProperty( execution=greengrass.CfnFunctionDefinitionVersion.ExecutionProperty( isolation_mode="isolationMode", run_as=greengrass.CfnFunctionDefinitionVersion.RunAsProperty( gid=123, uid=123 ) ) ) )
Attributes
- default_config
The default configuration that applies to all Lambda functions in the group.
Individual Lambda functions can override these settings.
- function_definition_id
The ID of the function definition associated with this version.
This value is a GUID.
- functions
The functions in this version.