Skip to content
v2.277.0

ScriptReference Struct ​

A reference to a Script resource.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_gamelift as interfaces_gamelift } from 'aws-cdk-lib/interfaces';
const scriptReference: interfaces_gamelift.ScriptReference = {
  scriptArn: 'scriptArn',
  scriptId: 'scriptId',
};
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_gamelift as interfaces_gamelift

script_reference = interfaces_gamelift.ScriptReference(
    script_arn="scriptArn",
    script_id="scriptId"
)
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.gamelift.*;

ScriptReference scriptReference = ScriptReference.builder()
        .scriptArn("scriptArn")
        .scriptId("scriptId")
        .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.GameLift;

var scriptReference = new ScriptReference {
    ScriptArn = "scriptArn",
    ScriptId = "scriptId"
};
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"

scriptReference := &ScriptReference{
	ScriptArn: jsii.String("scriptArn"),
	ScriptId: jsii.String("scriptId"),
}

Properties ​

scriptArnstringscript_arnstrscriptArnStringScriptArnstringScriptArn*stringrequired#
The ARN of the Script resource.
scriptIdstringscript_idstrscriptIdStringScriptIdstringScriptId*stringrequired#
The Id of the Script resource.