Class CfnAlias
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.gamelift.CfnAlias
- All Implemented Interfaces:
IInspectable,ITaggableV2,IAliasRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.113.0 (build fc68b25)",
date="2025-10-14T12:28:11.575Z")
@Stability(Stable)
public class CfnAlias
extends CfnResource
implements IInspectable, IAliasRef, ITaggableV2
The
AWS::GameLift::Alias resource creates an alias for an Amazon GameLift (GameLift) fleet destination.
There are two types of routing strategies for aliases: simple and terminal. A simple alias points to an active fleet. A terminal alias displays a message instead of routing players to an active fleet. For example, a terminal alias might display a URL link that directs players to an upgrade site. You can use aliases to define destinations in a game session queue or when requesting new game sessions.
Example:
// 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.*;
CfnAlias cfnAlias = CfnAlias.Builder.create(this, "MyCfnAlias")
.name("name")
.routingStrategy(RoutingStrategyProperty.builder()
.type("type")
// the properties below are optional
.fleetId("fleetId")
.message("message")
.build())
// the properties below are optional
.description("description")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnAlias.static interfaceThe routing configuration for a fleet alias.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.gamelift.IAliasRef
IAliasRef.Jsii$Default, IAliasRef.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnAlias(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnAlias(software.amazon.jsii.JsiiObjectRef objRef) CfnAlias(software.constructs.Construct scope, String id, CfnAliasProps props) -
Method Summary
Modifier and TypeMethodDescriptionstatic IAliasReffromAliasArn(software.constructs.Construct scope, String id, String arn) Creates a new IAliasRef from an ARN.static IAliasReffromAliasId(software.constructs.Construct scope, String id, String aliasId) Creates a new IAliasRef from a aliasId.A reference to a Alias resource.The Amazon Resource Name ( ARN ) that is assigned to a Amazon GameLift Servers alias resource and uniquely identifies it.A unique identifier for the alias.Tag Manager which manages the tags for this resource.A human-readable description of the alias.getName()A descriptive label that is associated with an alias.The routing configuration, including routing type and fleet target, for the alias.getTags()An array of key-value pairs to apply to this resource.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetDescription(String value) A human-readable description of the alias.voidA descriptive label that is associated with an alias.voidsetRoutingStrategy(IResolvable value) The routing configuration, including routing type and fleet target, for the alias.voidThe routing configuration, including routing type and fleet target, for the alias.voidAn array of key-value pairs to apply to this resource.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnAlias
protected CfnAlias(software.amazon.jsii.JsiiObjectRef objRef) -
CfnAlias
protected CfnAlias(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnAlias
@Stability(Stable) public CfnAlias(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnAliasProps props) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
fromAliasArn
@Stability(Stable) @NotNull public static IAliasRef fromAliasArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String arn) Creates a new IAliasRef from an ARN.- Parameters:
scope- This parameter is required.id- This parameter is required.arn- This parameter is required.
-
fromAliasId
@Stability(Stable) @NotNull public static IAliasRef fromAliasId(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String aliasId) Creates a new IAliasRef from a aliasId.- Parameters:
scope- This parameter is required.id- This parameter is required.aliasId- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAliasRef
A reference to a Alias resource.- Specified by:
getAliasRefin interfaceIAliasRef
-
getAttrAliasArn
The Amazon Resource Name ( ARN ) that is assigned to a Amazon GameLift Servers alias resource and uniquely identifies it. ARNs are unique across all Regions. Format isarn:aws:gamelift:<region>::alias/alias-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912. In a GameLift alias ARN, the resource ID matches the alias ID value. -
getAttrAliasId
A unique identifier for the alias. For example,arn:aws:gamelift:us-west-1::alias/alias-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912.Alias IDs are unique within a Region.
-
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getName
A descriptive label that is associated with an alias. -
setName
A descriptive label that is associated with an alias. -
getRoutingStrategy
The routing configuration, including routing type and fleet target, for the alias. -
setRoutingStrategy
The routing configuration, including routing type and fleet target, for the alias. -
setRoutingStrategy
The routing configuration, including routing type and fleet target, for the alias. -
getDescription
A human-readable description of the alias. -
setDescription
A human-readable description of the alias. -
getTags
An array of key-value pairs to apply to this resource. -
setTags
An array of key-value pairs to apply to this resource.
-