Skip to content
v2.277.0

Experimental

@aws-cdk/aws-gamelift-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.

ScriptAttributes Struct ​

Represents a Script content defined outside of this stack.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as gamelift_alpha from '@aws-cdk/aws-gamelift-alpha';
import { aws_iam as iam } from 'aws-cdk-lib';

declare const role: iam.Role;
const scriptAttributes: gamelift_alpha.ScriptAttributes = {
  scriptArn: 'scriptArn',

  // the properties below are optional
  role: role,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_gamelift_alpha as gamelift_alpha
from aws_cdk import aws_iam as iam

# role: iam.Role

script_attributes = gamelift_alpha.ScriptAttributes(
    script_arn="scriptArn",

    # the properties below are optional
    role=role
)
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.gamelift.alpha.*;
import software.amazon.awscdk.services.iam.*;

Role role;

ScriptAttributes scriptAttributes = ScriptAttributes.builder()
        .scriptArn("scriptArn")

        // the properties below are optional
        .role(role)
        .build();
csharp
// Install: dotnet add package Amazon.CDK.AWS.GameLift.Alpha
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.GameLift.Alpha;
using Amazon.CDK.AWS.IAM;

Role role;

var scriptAttributes = new ScriptAttributes {
    ScriptArn = "scriptArn",

    // the properties below are optional
    Role = role
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdkgameliftalpha/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import gamelift_alpha "github.com/aws/aws-cdk-go/awscdkgameliftalpha"
import "github.com/aws/aws-cdk-go/awscdk"

var role Role

scriptAttributes := &ScriptAttributes{
	ScriptArn: jsii.String("scriptArn"),

	// the properties below are optional
	Role: role,
}

Properties ​

roleoptionalIRoleroleoptionalIRoleroleoptionalIRoleRoleoptionalIRoleRoleoptionalIRole = undefined #
The IAM role assumed by GameLift to access server script in S3.
scriptArnstringscript_arnstrscriptArnStringScriptArnstringScriptArn*string required #
The ARN of the realtime server script.