Experimental
@aws-cdk/aws-gamelift-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.
FleetAttributes Struct
A full specification of a fleet that can be used to import it fluently into the CDK application.
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 fleetAttributes: gamelift_alpha.FleetAttributes = {
fleetArn: 'fleetArn',
fleetId: 'fleetId',
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
fleet_attributes = gamelift_alpha.FleetAttributes(
fleet_arn="fleetArn",
fleet_id="fleetId",
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;
FleetAttributes fleetAttributes = FleetAttributes.builder()
.fleetArn("fleetArn")
.fleetId("fleetId")
.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 fleetAttributes = new FleetAttributes {
FleetArn = "fleetArn",
FleetId = "fleetId",
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
fleetAttributes := &FleetAttributes{
FleetArn: jsii.String("fleetArn"),
FleetId: jsii.String("fleetId"),
Role: role,
}
Properties
fleetArnoptionalstringfleet_arnoptionalstrfleetArnoptionalStringFleetArnoptionalstringFleetArnoptional*string#The ARN of the fleet.
Default: derived from fleetId.
At least one of fleetArn and fleetId must be provided.
fleetIdoptionalstringfleet_idoptionalstrfleetIdoptionalStringFleetIdoptionalstringFleetIdoptional*string#The identifier of the fleet.
Default: derived from fleetArn.
At least one of fleetId and fleetArn must be provided.