FunctionProperty Struct
The function body.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_iottwinmaker as iottwinmaker } from 'aws-cdk-lib';
const functionProperty: iottwinmaker.CfnComponentType.FunctionProperty = {
implementedBy: {
isNative: false,
lambda: {
arn: 'arn',
},
},
requiredProperties: ['requiredProperties'],
scope: 'scope',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_iottwinmaker as iottwinmaker
function_property = iottwinmaker.CfnComponentType.FunctionProperty(
implemented_by=iottwinmaker.CfnComponentType.DataConnectorProperty(
is_native=False,
lambda_=iottwinmaker.CfnComponentType.LambdaFunctionProperty(
arn="arn"
)
),
required_properties=["requiredProperties"],
scope="scope"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.iottwinmaker.*;
FunctionProperty functionProperty = FunctionProperty.builder()
.implementedBy(DataConnectorProperty.builder()
.isNative(false)
.lambda(LambdaFunctionProperty.builder()
.arn("arn")
.build())
.build())
.requiredProperties(List.of("requiredProperties"))
.scope("scope")
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.IoTTwinMaker;
var functionProperty = new FunctionProperty {
ImplementedBy = new DataConnectorProperty {
IsNative = false,
Lambda = new LambdaFunctionProperty {
Arn = "arn"
}
},
RequiredProperties = new [] { "requiredProperties" },
Scope = "scope"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
functionProperty := &FunctionProperty{
ImplementedBy: &DataConnectorProperty{
IsNative: jsii.Boolean(false),
Lambda: &LambdaFunctionProperty{
Arn: jsii.String("arn"),
},
},
RequiredProperties: []*string{
jsii.String("requiredProperties"),
},
Scope: jsii.String("scope"),
}
Properties
implementedByoptionalIResolvable | CfnComponentType.implemented_byoptionaltyping.Union[IResolvable, DataConnectorProperty]implementedByoptionalIResolvableImplementedByoptionalIResolvableImplementedByoptionalinterface{} #The data connector.
requiredPropertiesoptionalstring[]required_propertiesoptionaltyping.List[str]requiredPropertiesoptionalList<String>RequiredPropertiesoptionalstring[]RequiredPropertiesoptional*[]*string #The required properties of the function.
The scope of the function.