CfnFunctionDefinitionVersionMixinProps

class aws_cdk.mixins_preview.aws_greengrass.mixins.CfnFunctionDefinitionVersionMixinProps(*, default_config=None, function_definition_id=None, functions=None)

Bases: object

Properties for CfnFunctionDefinitionVersionPropsMixin.

Parameters:
  • 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.

  • function_definition_id (Optional[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]]], None]) – The functions in this version.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-greengrass-functiondefinitionversion.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.mixins_preview.aws_greengrass import mixins as greengrass_mixins

# variables: Any

cfn_function_definition_version_mixin_props = greengrass_mixins.CfnFunctionDefinitionVersionMixinProps(
    default_config=greengrass_mixins.CfnFunctionDefinitionVersionPropsMixin.DefaultConfigProperty(
        execution=greengrass_mixins.CfnFunctionDefinitionVersionPropsMixin.ExecutionProperty(
            isolation_mode="isolationMode",
            run_as=greengrass_mixins.CfnFunctionDefinitionVersionPropsMixin.RunAsProperty(
                gid=123,
                uid=123
            )
        )
    ),
    function_definition_id="functionDefinitionId",
    functions=[greengrass_mixins.CfnFunctionDefinitionVersionPropsMixin.FunctionProperty(
        function_arn="functionArn",
        function_configuration=greengrass_mixins.CfnFunctionDefinitionVersionPropsMixin.FunctionConfigurationProperty(
            encoding_type="encodingType",
            environment=greengrass_mixins.CfnFunctionDefinitionVersionPropsMixin.EnvironmentProperty(
                access_sysfs=False,
                execution=greengrass_mixins.CfnFunctionDefinitionVersionPropsMixin.ExecutionProperty(
                    isolation_mode="isolationMode",
                    run_as=greengrass_mixins.CfnFunctionDefinitionVersionPropsMixin.RunAsProperty(
                        gid=123,
                        uid=123
                    )
                ),
                resource_access_policies=[greengrass_mixins.CfnFunctionDefinitionVersionPropsMixin.ResourceAccessPolicyProperty(
                    permission="permission",
                    resource_id="resourceId"
                )],
                variables=variables
            ),
            exec_args="execArgs",
            executable="executable",
            memory_size=123,
            pinned=False,
            timeout=123
        ),
        id="id"
    )]
)

Attributes

default_config

The default configuration that applies to all Lambda functions in the group.

Individual Lambda functions can override these settings.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-greengrass-functiondefinitionversion.html#cfn-greengrass-functiondefinitionversion-defaultconfig

function_definition_id

The ID of the function definition associated with this version.

This value is a GUID.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-greengrass-functiondefinitionversion.html#cfn-greengrass-functiondefinitionversion-functiondefinitionid

functions

The functions in this version.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-greengrass-functiondefinitionversion.html#cfn-greengrass-functiondefinitionversion-functions