Struct aws_sdk_gamelift::operation::register_compute::builders::RegisterComputeFluentBuilder
source · pub struct RegisterComputeFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to RegisterCompute
.
This operation has been expanded to use with the Amazon GameLift containers feature, which is currently in public preview.
Registers a compute resource in an Amazon GameLift fleet. Register computes with an Amazon GameLift Anywhere fleet or a container fleet.
For an Anywhere fleet or a container fleet that's running the Amazon GameLift Agent, the Agent handles all compute registry tasks for you. For an Anywhere fleet that doesn't use the Agent, call this operation to register fleet computes.
To register a compute, give the compute a name (must be unique within the fleet) and specify the compute resource's DNS name or IP address. Provide a fleet ID and a fleet location to associate with the compute being registered. You can optionally include the path to a TLS certificate on the compute resource.
If successful, this operation returns compute details, including an Amazon GameLift SDK endpoint or Agent endpoint. Game server processes running on the compute can use this endpoint to communicate with the Amazon GameLift service. Each server process includes the SDK endpoint in its call to the Amazon GameLift server SDK action InitSDK()
.
To view compute details, call DescribeCompute with the compute name.
Learn more
-
Server SDK reference guides (for version 5.x)
Implementations§
source§impl RegisterComputeFluentBuilder
impl RegisterComputeFluentBuilder
sourcepub fn as_input(&self) -> &RegisterComputeInputBuilder
pub fn as_input(&self) -> &RegisterComputeInputBuilder
Access the RegisterCompute as a reference.
sourcepub async fn send(
self
) -> Result<RegisterComputeOutput, SdkError<RegisterComputeError, HttpResponse>>
pub async fn send( self ) -> Result<RegisterComputeOutput, SdkError<RegisterComputeError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<RegisterComputeOutput, RegisterComputeError, Self>
pub fn customize( self ) -> CustomizableOperation<RegisterComputeOutput, RegisterComputeError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn fleet_id(self, input: impl Into<String>) -> Self
pub fn fleet_id(self, input: impl Into<String>) -> Self
A unique identifier for the fleet to register the compute to. You can use either the fleet ID or ARN value.
sourcepub fn set_fleet_id(self, input: Option<String>) -> Self
pub fn set_fleet_id(self, input: Option<String>) -> Self
A unique identifier for the fleet to register the compute to. You can use either the fleet ID or ARN value.
sourcepub fn get_fleet_id(&self) -> &Option<String>
pub fn get_fleet_id(&self) -> &Option<String>
A unique identifier for the fleet to register the compute to. You can use either the fleet ID or ARN value.
sourcepub fn compute_name(self, input: impl Into<String>) -> Self
pub fn compute_name(self, input: impl Into<String>) -> Self
A descriptive label for the compute resource.
sourcepub fn set_compute_name(self, input: Option<String>) -> Self
pub fn set_compute_name(self, input: Option<String>) -> Self
A descriptive label for the compute resource.
sourcepub fn get_compute_name(&self) -> &Option<String>
pub fn get_compute_name(&self) -> &Option<String>
A descriptive label for the compute resource.
sourcepub fn certificate_path(self, input: impl Into<String>) -> Self
pub fn certificate_path(self, input: impl Into<String>) -> Self
The path to a TLS certificate on your compute resource. Amazon GameLift doesn't validate the path and certificate.
sourcepub fn set_certificate_path(self, input: Option<String>) -> Self
pub fn set_certificate_path(self, input: Option<String>) -> Self
The path to a TLS certificate on your compute resource. Amazon GameLift doesn't validate the path and certificate.
sourcepub fn get_certificate_path(&self) -> &Option<String>
pub fn get_certificate_path(&self) -> &Option<String>
The path to a TLS certificate on your compute resource. Amazon GameLift doesn't validate the path and certificate.
sourcepub fn dns_name(self, input: impl Into<String>) -> Self
pub fn dns_name(self, input: impl Into<String>) -> Self
The DNS name of the compute resource. Amazon GameLift requires either a DNS name or IP address.
sourcepub fn set_dns_name(self, input: Option<String>) -> Self
pub fn set_dns_name(self, input: Option<String>) -> Self
The DNS name of the compute resource. Amazon GameLift requires either a DNS name or IP address.
sourcepub fn get_dns_name(&self) -> &Option<String>
pub fn get_dns_name(&self) -> &Option<String>
The DNS name of the compute resource. Amazon GameLift requires either a DNS name or IP address.
sourcepub fn ip_address(self, input: impl Into<String>) -> Self
pub fn ip_address(self, input: impl Into<String>) -> Self
The IP address of the compute resource. Amazon GameLift requires either a DNS name or IP address.
sourcepub fn set_ip_address(self, input: Option<String>) -> Self
pub fn set_ip_address(self, input: Option<String>) -> Self
The IP address of the compute resource. Amazon GameLift requires either a DNS name or IP address.
sourcepub fn get_ip_address(&self) -> &Option<String>
pub fn get_ip_address(&self) -> &Option<String>
The IP address of the compute resource. Amazon GameLift requires either a DNS name or IP address.
sourcepub fn location(self, input: impl Into<String>) -> Self
pub fn location(self, input: impl Into<String>) -> Self
The name of a custom location to associate with the compute resource being registered.
sourcepub fn set_location(self, input: Option<String>) -> Self
pub fn set_location(self, input: Option<String>) -> Self
The name of a custom location to associate with the compute resource being registered.
sourcepub fn get_location(&self) -> &Option<String>
pub fn get_location(&self) -> &Option<String>
The name of a custom location to associate with the compute resource being registered.
Trait Implementations§
source§impl Clone for RegisterComputeFluentBuilder
impl Clone for RegisterComputeFluentBuilder
source§fn clone(&self) -> RegisterComputeFluentBuilder
fn clone(&self) -> RegisterComputeFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for RegisterComputeFluentBuilder
impl !RefUnwindSafe for RegisterComputeFluentBuilder
impl Send for RegisterComputeFluentBuilder
impl Sync for RegisterComputeFluentBuilder
impl Unpin for RegisterComputeFluentBuilder
impl !UnwindSafe for RegisterComputeFluentBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more