CfnFunctionDefinitionMixinProps

class aws_cdk.mixins_preview.aws_greengrass.mixins.CfnFunctionDefinitionMixinProps(*, initial_version=None, name=None, tags=None)

Bases: object

Properties for CfnFunctionDefinitionPropsMixin.

Parameters:
See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-greengrass-functiondefinition.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

# tags: Any
# variables: Any

cfn_function_definition_mixin_props = greengrass_mixins.CfnFunctionDefinitionMixinProps(
    initial_version=greengrass_mixins.CfnFunctionDefinitionPropsMixin.FunctionDefinitionVersionProperty(
        default_config=greengrass_mixins.CfnFunctionDefinitionPropsMixin.DefaultConfigProperty(
            execution=greengrass_mixins.CfnFunctionDefinitionPropsMixin.ExecutionProperty(
                isolation_mode="isolationMode",
                run_as=greengrass_mixins.CfnFunctionDefinitionPropsMixin.RunAsProperty(
                    gid=123,
                    uid=123
                )
            )
        ),
        functions=[greengrass_mixins.CfnFunctionDefinitionPropsMixin.FunctionProperty(
            function_arn="functionArn",
            function_configuration=greengrass_mixins.CfnFunctionDefinitionPropsMixin.FunctionConfigurationProperty(
                encoding_type="encodingType",
                environment=greengrass_mixins.CfnFunctionDefinitionPropsMixin.EnvironmentProperty(
                    access_sysfs=False,
                    execution=greengrass_mixins.CfnFunctionDefinitionPropsMixin.ExecutionProperty(
                        isolation_mode="isolationMode",
                        run_as=greengrass_mixins.CfnFunctionDefinitionPropsMixin.RunAsProperty(
                            gid=123,
                            uid=123
                        )
                    ),
                    resource_access_policies=[greengrass_mixins.CfnFunctionDefinitionPropsMixin.ResourceAccessPolicyProperty(
                        permission="permission",
                        resource_id="resourceId"
                    )],
                    variables=variables
                ),
                exec_args="execArgs",
                executable="executable",
                memory_size=123,
                pinned=False,
                timeout=123
            ),
            id="id"
        )]
    ),
    name="name",
    tags=tags
)

Attributes

initial_version

The function definition version to include when the function definition is created.

A function definition version contains a list of `function <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-functiondefinition-function.html>`_ property types. .. epigraph:

To associate a function definition version after the function definition is created, create an ```AWS::Greengrass::FunctionDefinitionVersion`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-greengrass-functiondefinitionversion.html>`_ resource and specify the ID of this function definition.
See:

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

name

The name of the function definition.

See:

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

tags

Application-specific metadata to attach to the function definition.

You can use tags in IAM policies to control access to AWS IoT Greengrass resources. You can also use tags to categorize your resources. For more information, see Tagging Your AWS IoT Greengrass Resources in the Developer Guide .

This Json property type is processed as a map of key-value pairs. It uses the following format, which is different from most Tags implementations in CloudFormation templates:

"Tags": { "KeyName0": "value", "KeyName1": "value", "KeyName2": "value"
}
See:

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