@ThreadSafe public class AmazonAppStreamClient extends AmazonWebServiceClient implements AmazonAppStream
API documentation for Amazon AppStream 2.0.
LOGGING_AWS_REQUEST_METRIC
ENDPOINT_PREFIX
Constructor and Description |
---|
AmazonAppStreamClient()
Constructs a new client to invoke service methods on Amazon AppStream.
|
AmazonAppStreamClient(AWSCredentials awsCredentials)
Constructs a new client to invoke service methods on Amazon AppStream using the specified AWS account
credentials.
|
AmazonAppStreamClient(AWSCredentials awsCredentials,
ClientConfiguration clientConfiguration)
Constructs a new client to invoke service methods on Amazon AppStream using the specified AWS account credentials
and client configuration options.
|
AmazonAppStreamClient(AWSCredentialsProvider awsCredentialsProvider)
Constructs a new client to invoke service methods on Amazon AppStream using the specified AWS account credentials
provider.
|
AmazonAppStreamClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration)
Constructs a new client to invoke service methods on Amazon AppStream using the specified AWS account credentials
provider and client configuration options.
|
AmazonAppStreamClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration,
RequestMetricCollector requestMetricCollector)
Constructs a new client to invoke service methods on Amazon AppStream using the specified AWS account credentials
provider, client configuration options, and request metric collector.
|
AmazonAppStreamClient(ClientConfiguration clientConfiguration)
Constructs a new client to invoke service methods on Amazon AppStream.
|
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.
|
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() |
addRequestHandler, addRequestHandler, configureRegion, getEndpointPrefix, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, shutdown, withEndpoint, withRegion, withRegion, withTimeOffset
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setEndpoint, setRegion, shutdown
public AmazonAppStreamClient()
All service calls made using this new client object are blocking, and will not return until the service call completes.
DefaultAWSCredentialsProviderChain
public AmazonAppStreamClient(ClientConfiguration clientConfiguration)
All service calls made using this new client object are blocking, and will not return until the service call completes.
clientConfiguration
- The client configuration options controlling how this client connects to Amazon AppStream (ex: proxy
settings, retry counts, etc.).DefaultAWSCredentialsProviderChain
public AmazonAppStreamClient(AWSCredentials awsCredentials)
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentials
- The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.public AmazonAppStreamClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration)
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentials
- The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.clientConfiguration
- The client configuration options controlling how this client connects to Amazon AppStream (ex: proxy
settings, retry counts, etc.).public AmazonAppStreamClient(AWSCredentialsProvider awsCredentialsProvider)
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentialsProvider
- The AWS credentials provider which will provide credentials to authenticate requests with AWS services.public AmazonAppStreamClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration)
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentialsProvider
- The AWS credentials provider which will provide credentials to authenticate requests with AWS services.clientConfiguration
- The client configuration options controlling how this client connects to Amazon AppStream (ex: proxy
settings, retry counts, etc.).public AmazonAppStreamClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration, RequestMetricCollector requestMetricCollector)
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentialsProvider
- The AWS credentials provider which will provide credentials to authenticate requests with AWS services.clientConfiguration
- The client configuration options controlling how this client connects to Amazon AppStream (ex: proxy
settings, retry counts, etc.).requestMetricCollector
- optional request metric collectorpublic AssociateFleetResult associateFleet(AssociateFleetRequest associateFleetRequest)
Associate a fleet to a stack.
associateFleet
in interface AmazonAppStream
associateFleetRequest
- LimitExceededException
- The requested limit exceeds the permitted limit for an account.ResourceNotFoundException
- The specified resource was not found.public CreateFleetResult createFleet(CreateFleetRequest createFleetRequest)
Creates a new fleet.
createFleet
in interface AmazonAppStream
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.public CreateStackResult createStack(CreateStackRequest createStackRequest)
Create a new stack.
createStack
in interface AmazonAppStream
createStackRequest
- LimitExceededException
- The requested limit exceeds the permitted limit for an account.ResourceAlreadyExistsException
- The specified resource already exists.public 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.
createStreamingURL
in interface AmazonAppStream
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.public DeleteFleetResult deleteFleet(DeleteFleetRequest deleteFleetRequest)
Deletes a fleet.
deleteFleet
in interface AmazonAppStream
deleteFleetRequest
- ResourceInUseException
- The specified resource is in use.ResourceNotFoundException
- The specified resource was not found.public 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.
deleteStack
in interface AmazonAppStream
deleteStackRequest
- ResourceInUseException
- The specified resource is in use.ResourceNotFoundException
- The specified resource was not found.public DescribeFleetsResult describeFleets(DescribeFleetsRequest describeFleetsRequest)
If fleet names are provided, this operation describes the specified fleets; otherwise, all the fleets in the account are described.
describeFleets
in interface AmazonAppStream
describeFleetsRequest
- ResourceNotFoundException
- The specified resource was not found.public 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.
describeImages
in interface AmazonAppStream
describeImagesRequest
- ResourceNotFoundException
- The specified resource was not found.public 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.
describeSessions
in interface AmazonAppStream
describeSessionsRequest
- public 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.
describeStacks
in interface AmazonAppStream
describeStacksRequest
- ResourceNotFoundException
- The specified resource was not found.public DisassociateFleetResult disassociateFleet(DisassociateFleetRequest disassociateFleetRequest)
Disassociates a fleet from a stack.
disassociateFleet
in interface AmazonAppStream
disassociateFleetRequest
- ResourceInUseException
- The specified resource is in use.ResourceNotFoundException
- The specified resource was not found.public ExpireSessionResult expireSession(ExpireSessionRequest expireSessionRequest)
This operation immediately stops a streaming session.
expireSession
in interface AmazonAppStream
expireSessionRequest
- public ListAssociatedFleetsResult listAssociatedFleets(ListAssociatedFleetsRequest listAssociatedFleetsRequest)
Lists all fleets associated with the stack.
listAssociatedFleets
in interface AmazonAppStream
listAssociatedFleetsRequest
- public ListAssociatedStacksResult listAssociatedStacks(ListAssociatedStacksRequest listAssociatedStacksRequest)
Lists all stacks to which the specified fleet is associated.
listAssociatedStacks
in interface AmazonAppStream
listAssociatedStacksRequest
- public StartFleetResult startFleet(StartFleetRequest startFleetRequest)
Starts a fleet.
startFleet
in interface AmazonAppStream
startFleetRequest
- ResourceNotFoundException
- The specified resource was not found.LimitExceededException
- The requested limit exceeds the permitted limit for an account.public StopFleetResult stopFleet(StopFleetRequest stopFleetRequest)
Stops a fleet.
stopFleet
in interface AmazonAppStream
stopFleetRequest
- ResourceNotFoundException
- The specified resource was not found.public 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.
updateFleet
in interface AmazonAppStream
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.public UpdateStackResult updateStack(UpdateStackRequest updateStackRequest)
Updates the specified fields in the stack with the specified name.
updateStack
in interface AmazonAppStream
updateStackRequest
- ResourceNotFoundException
- The specified resource was not found.ResourceInUseException
- The specified resource is in use.public 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 the request.
getCachedResponseMetadata
in interface AmazonAppStream
request
- The originally executed requestpublic AmazonAppStreamWaiters waiters()
waiters
in interface AmazonAppStream
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.