Skip to content
v2.277.0

FunctionDefinitionReference Struct ​

A reference to a FunctionDefinition resource.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_greengrass as interfaces_greengrass } from 'aws-cdk-lib/interfaces';
const functionDefinitionReference: interfaces_greengrass.FunctionDefinitionReference = {
  functionDefinitionArn: 'functionDefinitionArn',
  functionDefinitionId: 'functionDefinitionId',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.interfaces import aws_greengrass as interfaces_greengrass

function_definition_reference = interfaces_greengrass.FunctionDefinitionReference(
    function_definition_arn="functionDefinitionArn",
    function_definition_id="functionDefinitionId"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.interfaces.greengrass.*;

FunctionDefinitionReference functionDefinitionReference = FunctionDefinitionReference.builder()
        .functionDefinitionArn("functionDefinitionArn")
        .functionDefinitionId("functionDefinitionId")
        .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.Interfaces.Greengrass;

var functionDefinitionReference = new FunctionDefinitionReference {
    FunctionDefinitionArn = "functionDefinitionArn",
    FunctionDefinitionId = "functionDefinitionId"
};
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"

functionDefinitionReference := &FunctionDefinitionReference{
	FunctionDefinitionArn: jsii.String("functionDefinitionArn"),
	FunctionDefinitionId: jsii.String("functionDefinitionId"),
}

Properties ​

functionDefinitionArnstringfunction_definition_arnstrfunctionDefinitionArnStringFunctionDefinitionArnstringFunctionDefinitionArn*stringrequired#
The ARN of the FunctionDefinition resource.
functionDefinitionIdstringfunction_definition_idstrfunctionDefinitionIdStringFunctionDefinitionIdstringFunctionDefinitionId*stringrequired#
The Id of the FunctionDefinition resource.