public interface AmazonAppStream
Note: Do not directly implement this interface, new methods are added to it regularly. Extend from
AbstractAmazonAppStream
instead.
API documentation for Amazon AppStream 2.0.
Modifier and Type | Field and Description |
---|---|
static String |
ENDPOINT_PREFIX
The region metadata service name for computing region endpoints.
|
Modifier and Type | Method and Description |
---|---|
AssociateFleetResult |
associateFleet(AssociateFleetRequest associateFleetRequest)
Associate a fleet to a stack.
|
CreateFleetResult |
createFleet(CreateFleetRequest createFleetRequest)
Creates a new fleet.
|
CreateStackResult |
createStack(CreateStackRequest createStackRequest)
Create a new stack.
|
CreateStreamingURLResult |
createStreamingURL(CreateStreamingURLRequest createStreamingURLRequest)
Creates a URL to start an AppStream 2.0 streaming session for a user.
|
DeleteFleetResult |
deleteFleet(DeleteFleetRequest deleteFleetRequest)
Deletes a fleet.
|
DeleteStackResult |
deleteStack(DeleteStackRequest deleteStackRequest)
Deletes the stack.
|
DescribeFleetsResult |
describeFleets(DescribeFleetsRequest describeFleetsRequest)
If fleet names are provided, this operation describes the specified fleets; otherwise, all the fleets in the
account are described.
|
DescribeImagesResult |
describeImages(DescribeImagesRequest describeImagesRequest)
Describes the images.
|
DescribeSessionsResult |
describeSessions(DescribeSessionsRequest describeSessionsRequest)
Describes the streaming sessions for a stack and a fleet.
|
DescribeStacksResult |
describeStacks(DescribeStacksRequest describeStacksRequest)
If stack names are not provided, this operation describes the specified stacks; otherwise, all stacks in the
account are described.
|
DisassociateFleetResult |
disassociateFleet(DisassociateFleetRequest disassociateFleetRequest)
Disassociates a fleet from a stack.
|
ExpireSessionResult |
expireSession(ExpireSessionRequest expireSessionRequest)
This operation immediately stops a streaming session.
|
ResponseMetadata |
getCachedResponseMetadata(AmazonWebServiceRequest request)
Returns additional metadata for a previously executed successful request, typically used for debugging issues
where a service isn't acting as expected.
|
ListAssociatedFleetsResult |
listAssociatedFleets(ListAssociatedFleetsRequest listAssociatedFleetsRequest)
Lists all fleets associated with the stack.
|
ListAssociatedStacksResult |
listAssociatedStacks(ListAssociatedStacksRequest listAssociatedStacksRequest)
Lists all stacks to which the specified fleet is associated.
|
void |
setEndpoint(String endpoint)
Overrides the default endpoint for this client ("appstream2.us-east-1.amazonaws.com").
|
void |
setRegion(Region region)
An alternative to
setEndpoint(String) , sets the regional endpoint for this client's
service calls. |
void |
shutdown()
Shuts down this client object, releasing any resources that might be held open.
|
StartFleetResult |
startFleet(StartFleetRequest startFleetRequest)
Starts a fleet.
|
StopFleetResult |
stopFleet(StopFleetRequest stopFleetRequest)
Stops a fleet.
|
UpdateFleetResult |
updateFleet(UpdateFleetRequest updateFleetRequest)
Updates an existing fleet.
|
UpdateStackResult |
updateStack(UpdateStackRequest updateStackRequest)
Updates the specified fields in the stack with the specified name.
|
AmazonAppStreamWaiters |
waiters() |
static final String ENDPOINT_PREFIX
void setEndpoint(String endpoint)
Callers can pass in just the endpoint (ex: "appstream2.us-east-1.amazonaws.com") or a full URL, including the
protocol (ex: "appstream2.us-east-1.amazonaws.com"). If the protocol is not specified here, the default protocol
from this client's ClientConfiguration
will be used, which by default is HTTPS.
For more information on using AWS regions with the AWS SDK for Java, and a complete list of all available endpoints for all AWS services, see: http://developer.amazonwebservices.com/connect/entry.jspa?externalID=3912
This method is not threadsafe. An endpoint should be configured when the client is created and before any service requests are made. Changing it afterwards creates inevitable race conditions for any service requests in transit or retrying.
endpoint
- The endpoint (ex: "appstream2.us-east-1.amazonaws.com") or a full URL, including the protocol (ex:
"appstream2.us-east-1.amazonaws.com") of the region specific AWS endpoint this client will communicate
with.void setRegion(Region region)
setEndpoint(String)
, sets the regional endpoint for this client's
service calls. Callers can use this method to control which AWS region they want to work with.
By default, all service endpoints in all regions use the https protocol. To use http instead, specify it in the
ClientConfiguration
supplied at construction.
This method is not threadsafe. A region should be configured when the client is created and before any service requests are made. Changing it afterwards creates inevitable race conditions for any service requests in transit or retrying.
region
- The region this client will communicate with. See Region.getRegion(com.amazonaws.regions.Regions)
for accessing a given region. Must not be null and must be a region where the service is available.Region.getRegion(com.amazonaws.regions.Regions)
,
Region.createClient(Class, com.amazonaws.auth.AWSCredentialsProvider, ClientConfiguration)
,
Region.isServiceSupported(String)
AssociateFleetResult associateFleet(AssociateFleetRequest associateFleetRequest)
Associate a fleet to a stack.
associateFleetRequest
- LimitExceededException
- The requested limit exceeds the permitted limit for an account.ResourceNotFoundException
- The specified resource was not found.CreateFleetResult createFleet(CreateFleetRequest createFleetRequest)
Creates a new fleet.
createFleetRequest
- Contains the parameters for the new fleet to create.ResourceAlreadyExistsException
- The specified resource already exists.ResourceNotAvailableException
- The specified resource exists and is not in use, but isn't available.ResourceNotFoundException
- The specified resource was not found.LimitExceededException
- The requested limit exceeds the permitted limit for an account.InvalidRoleException
- The specified role is invalid.CreateStackResult createStack(CreateStackRequest createStackRequest)
Create a new stack.
createStackRequest
- LimitExceededException
- The requested limit exceeds the permitted limit for an account.ResourceAlreadyExistsException
- The specified resource already exists.CreateStreamingURLResult createStreamingURL(CreateStreamingURLRequest createStreamingURLRequest)
Creates a URL to start an AppStream 2.0 streaming session for a user. By default, the URL is valid only for 1 minute from the time that it is generated.
createStreamingURLRequest
- ResourceNotFoundException
- The specified resource was not found.ResourceNotAvailableException
- The specified resource exists and is not in use, but isn't available.OperationNotPermittedException
- The attempted operation is not permitted.DeleteFleetResult deleteFleet(DeleteFleetRequest deleteFleetRequest)
Deletes a fleet.
deleteFleetRequest
- ResourceInUseException
- The specified resource is in use.ResourceNotFoundException
- The specified resource was not found.DeleteStackResult deleteStack(DeleteStackRequest deleteStackRequest)
Deletes the stack. After this operation completes, the environment can no longer be activated, and any reservations made for the stack are released.
deleteStackRequest
- ResourceInUseException
- The specified resource is in use.ResourceNotFoundException
- The specified resource was not found.DescribeFleetsResult describeFleets(DescribeFleetsRequest describeFleetsRequest)
If fleet names are provided, this operation describes the specified fleets; otherwise, all the fleets in the account are described.
describeFleetsRequest
- ResourceNotFoundException
- The specified resource was not found.DescribeImagesResult describeImages(DescribeImagesRequest describeImagesRequest)
Describes the images. If a list of names is not provided, all images in your account are returned. This operation does not return a paginated result.
describeImagesRequest
- ResourceNotFoundException
- The specified resource was not found.DescribeSessionsResult describeSessions(DescribeSessionsRequest describeSessionsRequest)
Describes the streaming sessions for a stack and a fleet. If a user ID is provided, this operation returns
streaming sessions for only that user. Pass this value for the nextToken
parameter in a subsequent
call to this operation to retrieve the next set of items.
DescribeStacksResult describeStacks(DescribeStacksRequest describeStacksRequest)
If stack names are not provided, this operation describes the specified stacks; otherwise, all stacks in the
account are described. Pass the nextToken
value in a subsequent call to this operation to retrieve
the next set of items.
describeStacksRequest
- ResourceNotFoundException
- The specified resource was not found.DisassociateFleetResult disassociateFleet(DisassociateFleetRequest disassociateFleetRequest)
Disassociates a fleet from a stack.
disassociateFleetRequest
- ResourceInUseException
- The specified resource is in use.ResourceNotFoundException
- The specified resource was not found.ExpireSessionResult expireSession(ExpireSessionRequest expireSessionRequest)
This operation immediately stops a streaming session.
ListAssociatedFleetsResult listAssociatedFleets(ListAssociatedFleetsRequest listAssociatedFleetsRequest)
Lists all fleets associated with the stack.
ListAssociatedStacksResult listAssociatedStacks(ListAssociatedStacksRequest listAssociatedStacksRequest)
Lists all stacks to which the specified fleet is associated.
StartFleetResult startFleet(StartFleetRequest startFleetRequest)
Starts a fleet.
startFleetRequest
- ResourceNotFoundException
- The specified resource was not found.LimitExceededException
- The requested limit exceeds the permitted limit for an account.StopFleetResult stopFleet(StopFleetRequest stopFleetRequest)
Stops a fleet.
stopFleetRequest
- ResourceNotFoundException
- The specified resource was not found.UpdateFleetResult updateFleet(UpdateFleetRequest updateFleetRequest)
Updates an existing fleet. All the attributes except the fleet name can be updated in the STOPPED state. Only ComputeCapacity and ImageName can be updated in any other state.
updateFleetRequest
- ResourceInUseException
- The specified resource is in use.LimitExceededException
- The requested limit exceeds the permitted limit for an account.InvalidRoleException
- The specified role is invalid.ResourceNotFoundException
- The specified resource was not found.UpdateStackResult updateStack(UpdateStackRequest updateStackRequest)
Updates the specified fields in the stack with the specified name.
updateStackRequest
- ResourceNotFoundException
- The specified resource was not found.ResourceInUseException
- The specified resource is in use.void shutdown()
ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic information for an executed request, you should use this method to retrieve it as soon as possible after executing a request.
request
- The originally executed request.AmazonAppStreamWaiters waiters()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.