interface CfnFunctionDefinitionMixinProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.Greengrass.Mixins.CfnFunctionDefinitionMixinProps |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsgreengrass/mixins#CfnFunctionDefinitionMixinProps |
Java | software.amazon.awscdk.mixins.preview.services.greengrass.mixins.CfnFunctionDefinitionMixinProps |
Python | aws_cdk.mixins_preview.aws_greengrass.mixins.CfnFunctionDefinitionMixinProps |
TypeScript | @aws-cdk/mixins-preview » aws_greengrass » mixins » CfnFunctionDefinitionMixinProps |
Properties for CfnFunctionDefinitionPropsMixin.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as greengrass_mixins } from '@aws-cdk/mixins-preview/aws-greengrass';
declare const tags: any;
declare const variables: any;
const cfnFunctionDefinitionMixinProps: greengrass_mixins.CfnFunctionDefinitionMixinProps = {
initialVersion: {
defaultConfig: {
execution: {
isolationMode: 'isolationMode',
runAs: {
gid: 123,
uid: 123,
},
},
},
functions: [{
functionArn: 'functionArn',
functionConfiguration: {
encodingType: 'encodingType',
environment: {
accessSysfs: false,
execution: {
isolationMode: 'isolationMode',
runAs: {
gid: 123,
uid: 123,
},
},
resourceAccessPolicies: [{
permission: 'permission',
resourceId: 'resourceId',
}],
variables: variables,
},
execArgs: 'execArgs',
executable: 'executable',
memorySize: 123,
pinned: false,
timeout: 123,
},
id: 'id',
}],
},
name: 'name',
tags: tags,
};
Properties
| Name | Type | Description |
|---|---|---|
| initial | IResolvable | Function | The function definition version to include when the function definition is created. |
| name? | string | The name of the function definition. |
| tags? | any | Application-specific metadata to attach to the function definition. |
initialVersion?
Type:
IResolvable | Function
(optional)
The function definition version to include when the function definition is created.
A function definition version contains a list of function property types.
To associate a function definition version after the function definition is created, create an
AWS::Greengrass::FunctionDefinitionVersionresource and specify the ID of this function definition.
name?
Type:
string
(optional)
The name of the function definition.
tags?
Type:
any
(optional)
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"
}

.NET
Go
Java
Python
TypeScript