Documentation ¶
Overview ¶
Package appstream provides a client for Amazon AppStream.
Index ¶
- Constants
- type AppStream
- func (c *AppStream) AssociateFleet(input *AssociateFleetInput) (*AssociateFleetOutput, error)
- func (c *AppStream) AssociateFleetRequest(input *AssociateFleetInput) (req *request.Request, output *AssociateFleetOutput)
- func (c *AppStream) CreateFleet(input *CreateFleetInput) (*CreateFleetOutput, error)
- func (c *AppStream) CreateFleetRequest(input *CreateFleetInput) (req *request.Request, output *CreateFleetOutput)
- func (c *AppStream) CreateStack(input *CreateStackInput) (*CreateStackOutput, error)
- func (c *AppStream) CreateStackRequest(input *CreateStackInput) (req *request.Request, output *CreateStackOutput)
- func (c *AppStream) CreateStreamingURL(input *CreateStreamingURLInput) (*CreateStreamingURLOutput, error)
- func (c *AppStream) CreateStreamingURLRequest(input *CreateStreamingURLInput) (req *request.Request, output *CreateStreamingURLOutput)
- func (c *AppStream) DeleteFleet(input *DeleteFleetInput) (*DeleteFleetOutput, error)
- func (c *AppStream) DeleteFleetRequest(input *DeleteFleetInput) (req *request.Request, output *DeleteFleetOutput)
- func (c *AppStream) DeleteStack(input *DeleteStackInput) (*DeleteStackOutput, error)
- func (c *AppStream) DeleteStackRequest(input *DeleteStackInput) (req *request.Request, output *DeleteStackOutput)
- func (c *AppStream) DescribeFleets(input *DescribeFleetsInput) (*DescribeFleetsOutput, error)
- func (c *AppStream) DescribeFleetsRequest(input *DescribeFleetsInput) (req *request.Request, output *DescribeFleetsOutput)
- func (c *AppStream) DescribeImages(input *DescribeImagesInput) (*DescribeImagesOutput, error)
- func (c *AppStream) DescribeImagesRequest(input *DescribeImagesInput) (req *request.Request, output *DescribeImagesOutput)
- func (c *AppStream) DescribeSessions(input *DescribeSessionsInput) (*DescribeSessionsOutput, error)
- func (c *AppStream) DescribeSessionsRequest(input *DescribeSessionsInput) (req *request.Request, output *DescribeSessionsOutput)
- func (c *AppStream) DescribeStacks(input *DescribeStacksInput) (*DescribeStacksOutput, error)
- func (c *AppStream) DescribeStacksRequest(input *DescribeStacksInput) (req *request.Request, output *DescribeStacksOutput)
- func (c *AppStream) DisassociateFleet(input *DisassociateFleetInput) (*DisassociateFleetOutput, error)
- func (c *AppStream) DisassociateFleetRequest(input *DisassociateFleetInput) (req *request.Request, output *DisassociateFleetOutput)
- func (c *AppStream) ExpireSession(input *ExpireSessionInput) (*ExpireSessionOutput, error)
- func (c *AppStream) ExpireSessionRequest(input *ExpireSessionInput) (req *request.Request, output *ExpireSessionOutput)
- func (c *AppStream) ListAssociatedFleets(input *ListAssociatedFleetsInput) (*ListAssociatedFleetsOutput, error)
- func (c *AppStream) ListAssociatedFleetsRequest(input *ListAssociatedFleetsInput) (req *request.Request, output *ListAssociatedFleetsOutput)
- func (c *AppStream) ListAssociatedStacks(input *ListAssociatedStacksInput) (*ListAssociatedStacksOutput, error)
- func (c *AppStream) ListAssociatedStacksRequest(input *ListAssociatedStacksInput) (req *request.Request, output *ListAssociatedStacksOutput)
- func (c *AppStream) StartFleet(input *StartFleetInput) (*StartFleetOutput, error)
- func (c *AppStream) StartFleetRequest(input *StartFleetInput) (req *request.Request, output *StartFleetOutput)
- func (c *AppStream) StopFleet(input *StopFleetInput) (*StopFleetOutput, error)
- func (c *AppStream) StopFleetRequest(input *StopFleetInput) (req *request.Request, output *StopFleetOutput)
- func (c *AppStream) UpdateFleet(input *UpdateFleetInput) (*UpdateFleetOutput, error)
- func (c *AppStream) UpdateFleetRequest(input *UpdateFleetInput) (req *request.Request, output *UpdateFleetOutput)
- func (c *AppStream) UpdateStack(input *UpdateStackInput) (*UpdateStackOutput, error)
- func (c *AppStream) UpdateStackRequest(input *UpdateStackInput) (req *request.Request, output *UpdateStackOutput)
- func (c *AppStream) WaitUntilFleetStarted(input *DescribeFleetsInput) error
- func (c *AppStream) WaitUntilFleetStopped(input *DescribeFleetsInput) error
- type Application
- func (s Application) GoString() string
- func (s *Application) SetDisplayName(v string) *Application
- func (s *Application) SetEnabled(v bool) *Application
- func (s *Application) SetIconURL(v string) *Application
- func (s *Application) SetLaunchParameters(v string) *Application
- func (s *Application) SetLaunchPath(v string) *Application
- func (s *Application) SetMetadata(v map[string]*string) *Application
- func (s *Application) SetName(v string) *Application
- func (s Application) String() string
- type AssociateFleetInput
- type AssociateFleetOutput
- type ComputeCapacity
- type ComputeCapacityStatus
- func (s ComputeCapacityStatus) GoString() string
- func (s *ComputeCapacityStatus) SetAvailable(v int64) *ComputeCapacityStatus
- func (s *ComputeCapacityStatus) SetDesired(v int64) *ComputeCapacityStatus
- func (s *ComputeCapacityStatus) SetInUse(v int64) *ComputeCapacityStatus
- func (s *ComputeCapacityStatus) SetRunning(v int64) *ComputeCapacityStatus
- func (s ComputeCapacityStatus) String() string
- type CreateFleetInput
- func (s CreateFleetInput) GoString() string
- func (s *CreateFleetInput) SetComputeCapacity(v *ComputeCapacity) *CreateFleetInput
- func (s *CreateFleetInput) SetDescription(v string) *CreateFleetInput
- func (s *CreateFleetInput) SetDisconnectTimeoutInSeconds(v int64) *CreateFleetInput
- func (s *CreateFleetInput) SetDisplayName(v string) *CreateFleetInput
- func (s *CreateFleetInput) SetImageName(v string) *CreateFleetInput
- func (s *CreateFleetInput) SetInstanceType(v string) *CreateFleetInput
- func (s *CreateFleetInput) SetMaxUserDurationInSeconds(v int64) *CreateFleetInput
- func (s *CreateFleetInput) SetName(v string) *CreateFleetInput
- func (s *CreateFleetInput) SetVpcConfig(v *VpcConfig) *CreateFleetInput
- func (s CreateFleetInput) String() string
- func (s *CreateFleetInput) Validate() error
- type CreateFleetOutput
- type CreateStackInput
- func (s CreateStackInput) GoString() string
- func (s *CreateStackInput) SetDescription(v string) *CreateStackInput
- func (s *CreateStackInput) SetDisplayName(v string) *CreateStackInput
- func (s *CreateStackInput) SetName(v string) *CreateStackInput
- func (s CreateStackInput) String() string
- func (s *CreateStackInput) Validate() error
- type CreateStackOutput
- type CreateStreamingURLInput
- func (s CreateStreamingURLInput) GoString() string
- func (s *CreateStreamingURLInput) SetApplicationId(v string) *CreateStreamingURLInput
- func (s *CreateStreamingURLInput) SetFleetName(v string) *CreateStreamingURLInput
- func (s *CreateStreamingURLInput) SetSessionContext(v string) *CreateStreamingURLInput
- func (s *CreateStreamingURLInput) SetStackName(v string) *CreateStreamingURLInput
- func (s *CreateStreamingURLInput) SetUserId(v string) *CreateStreamingURLInput
- func (s *CreateStreamingURLInput) SetValidity(v int64) *CreateStreamingURLInput
- func (s CreateStreamingURLInput) String() string
- func (s *CreateStreamingURLInput) Validate() error
- type CreateStreamingURLOutput
- type DeleteFleetInput
- type DeleteFleetOutput
- type DeleteStackInput
- type DeleteStackOutput
- type DescribeFleetsInput
- type DescribeFleetsOutput
- type DescribeImagesInput
- type DescribeImagesOutput
- type DescribeSessionsInput
- func (s DescribeSessionsInput) GoString() string
- func (s *DescribeSessionsInput) SetFleetName(v string) *DescribeSessionsInput
- func (s *DescribeSessionsInput) SetLimit(v int64) *DescribeSessionsInput
- func (s *DescribeSessionsInput) SetNextToken(v string) *DescribeSessionsInput
- func (s *DescribeSessionsInput) SetStackName(v string) *DescribeSessionsInput
- func (s *DescribeSessionsInput) SetUserId(v string) *DescribeSessionsInput
- func (s DescribeSessionsInput) String() string
- func (s *DescribeSessionsInput) Validate() error
- type DescribeSessionsOutput
- type DescribeStacksInput
- type DescribeStacksOutput
- type DisassociateFleetInput
- func (s DisassociateFleetInput) GoString() string
- func (s *DisassociateFleetInput) SetFleetName(v string) *DisassociateFleetInput
- func (s *DisassociateFleetInput) SetStackName(v string) *DisassociateFleetInput
- func (s DisassociateFleetInput) String() string
- func (s *DisassociateFleetInput) Validate() error
- type DisassociateFleetOutput
- type ExpireSessionInput
- type ExpireSessionOutput
- type Fleet
- func (s Fleet) GoString() string
- func (s *Fleet) SetArn(v string) *Fleet
- func (s *Fleet) SetComputeCapacityStatus(v *ComputeCapacityStatus) *Fleet
- func (s *Fleet) SetCreatedTime(v time.Time) *Fleet
- func (s *Fleet) SetDescription(v string) *Fleet
- func (s *Fleet) SetDisconnectTimeoutInSeconds(v int64) *Fleet
- func (s *Fleet) SetDisplayName(v string) *Fleet
- func (s *Fleet) SetFleetErrors(v []*FleetError) *Fleet
- func (s *Fleet) SetImageName(v string) *Fleet
- func (s *Fleet) SetInstanceType(v string) *Fleet
- func (s *Fleet) SetMaxUserDurationInSeconds(v int64) *Fleet
- func (s *Fleet) SetName(v string) *Fleet
- func (s *Fleet) SetState(v string) *Fleet
- func (s *Fleet) SetVpcConfig(v *VpcConfig) *Fleet
- func (s Fleet) String() string
- type FleetError
- type Image
- func (s Image) GoString() string
- func (s *Image) SetApplications(v []*Application) *Image
- func (s *Image) SetArn(v string) *Image
- func (s *Image) SetBaseImageArn(v string) *Image
- func (s *Image) SetCreatedTime(v time.Time) *Image
- func (s *Image) SetDescription(v string) *Image
- func (s *Image) SetDisplayName(v string) *Image
- func (s *Image) SetName(v string) *Image
- func (s *Image) SetPlatform(v string) *Image
- func (s *Image) SetState(v string) *Image
- func (s *Image) SetStateChangeReason(v *ImageStateChangeReason) *Image
- func (s *Image) SetVisibility(v string) *Image
- func (s Image) String() string
- type ImageStateChangeReason
- type ListAssociatedFleetsInput
- func (s ListAssociatedFleetsInput) GoString() string
- func (s *ListAssociatedFleetsInput) SetNextToken(v string) *ListAssociatedFleetsInput
- func (s *ListAssociatedFleetsInput) SetStackName(v string) *ListAssociatedFleetsInput
- func (s ListAssociatedFleetsInput) String() string
- func (s *ListAssociatedFleetsInput) Validate() error
- type ListAssociatedFleetsOutput
- type ListAssociatedStacksInput
- func (s ListAssociatedStacksInput) GoString() string
- func (s *ListAssociatedStacksInput) SetFleetName(v string) *ListAssociatedStacksInput
- func (s *ListAssociatedStacksInput) SetNextToken(v string) *ListAssociatedStacksInput
- func (s ListAssociatedStacksInput) String() string
- func (s *ListAssociatedStacksInput) Validate() error
- type ListAssociatedStacksOutput
- type Session
- func (s Session) GoString() string
- func (s *Session) SetFleetName(v string) *Session
- func (s *Session) SetId(v string) *Session
- func (s *Session) SetStackName(v string) *Session
- func (s *Session) SetState(v string) *Session
- func (s *Session) SetUserId(v string) *Session
- func (s Session) String() string
- type Stack
- type StartFleetInput
- type StartFleetOutput
- type StopFleetInput
- type StopFleetOutput
- type UpdateFleetInput
- func (s UpdateFleetInput) GoString() string
- func (s *UpdateFleetInput) SetComputeCapacity(v *ComputeCapacity) *UpdateFleetInput
- func (s *UpdateFleetInput) SetDeleteVpcConfig(v bool) *UpdateFleetInput
- func (s *UpdateFleetInput) SetDescription(v string) *UpdateFleetInput
- func (s *UpdateFleetInput) SetDisconnectTimeoutInSeconds(v int64) *UpdateFleetInput
- func (s *UpdateFleetInput) SetDisplayName(v string) *UpdateFleetInput
- func (s *UpdateFleetInput) SetImageName(v string) *UpdateFleetInput
- func (s *UpdateFleetInput) SetInstanceType(v string) *UpdateFleetInput
- func (s *UpdateFleetInput) SetMaxUserDurationInSeconds(v int64) *UpdateFleetInput
- func (s *UpdateFleetInput) SetName(v string) *UpdateFleetInput
- func (s *UpdateFleetInput) SetVpcConfig(v *VpcConfig) *UpdateFleetInput
- func (s UpdateFleetInput) String() string
- func (s *UpdateFleetInput) Validate() error
- type UpdateFleetOutput
- type UpdateStackInput
- func (s UpdateStackInput) GoString() string
- func (s *UpdateStackInput) SetDescription(v string) *UpdateStackInput
- func (s *UpdateStackInput) SetDisplayName(v string) *UpdateStackInput
- func (s *UpdateStackInput) SetName(v string) *UpdateStackInput
- func (s UpdateStackInput) String() string
- func (s *UpdateStackInput) Validate() error
- type UpdateStackOutput
- type VpcConfig
Examples ¶
- AppStream.AssociateFleet
- AppStream.CreateFleet
- AppStream.CreateStack
- AppStream.CreateStreamingURL
- AppStream.DeleteFleet
- AppStream.DeleteStack
- AppStream.DescribeFleets
- AppStream.DescribeImages
- AppStream.DescribeSessions
- AppStream.DescribeStacks
- AppStream.DisassociateFleet
- AppStream.ExpireSession
- AppStream.ListAssociatedFleets
- AppStream.ListAssociatedStacks
- AppStream.StartFleet
- AppStream.StopFleet
- AppStream.UpdateFleet
- AppStream.UpdateStack
Constants ¶
const ( // FleetErrorCodeIamServiceRoleMissingEniDescribeAction is a FleetErrorCode enum value FleetErrorCodeIamServiceRoleMissingEniDescribeAction = "IAM_SERVICE_ROLE_MISSING_ENI_DESCRIBE_ACTION" // FleetErrorCodeIamServiceRoleMissingEniCreateAction is a FleetErrorCode enum value FleetErrorCodeIamServiceRoleMissingEniCreateAction = "IAM_SERVICE_ROLE_MISSING_ENI_CREATE_ACTION" // FleetErrorCodeIamServiceRoleMissingEniDeleteAction is a FleetErrorCode enum value FleetErrorCodeIamServiceRoleMissingEniDeleteAction = "IAM_SERVICE_ROLE_MISSING_ENI_DELETE_ACTION" // FleetErrorCodeNetworkInterfaceLimitExceeded is a FleetErrorCode enum value FleetErrorCodeNetworkInterfaceLimitExceeded = "NETWORK_INTERFACE_LIMIT_EXCEEDED" // FleetErrorCodeInternalServiceError is a FleetErrorCode enum value FleetErrorCodeInternalServiceError = "INTERNAL_SERVICE_ERROR" // FleetErrorCodeIamServiceRoleIsMissing is a FleetErrorCode enum value FleetErrorCodeIamServiceRoleIsMissing = "IAM_SERVICE_ROLE_IS_MISSING" // FleetErrorCodeSubnetHasInsufficientIpAddresses is a FleetErrorCode enum value FleetErrorCodeSubnetHasInsufficientIpAddresses = "SUBNET_HAS_INSUFFICIENT_IP_ADDRESSES" // FleetErrorCodeIamServiceRoleMissingDescribeSubnetAction is a FleetErrorCode enum value FleetErrorCodeIamServiceRoleMissingDescribeSubnetAction = "IAM_SERVICE_ROLE_MISSING_DESCRIBE_SUBNET_ACTION" // FleetErrorCodeSubnetNotFound is a FleetErrorCode enum value FleetErrorCodeSubnetNotFound = "SUBNET_NOT_FOUND" // FleetErrorCodeImageNotFound is a FleetErrorCode enum value FleetErrorCodeImageNotFound = "IMAGE_NOT_FOUND" // FleetErrorCodeInvalidSubnetConfiguration is a FleetErrorCode enum value FleetErrorCodeInvalidSubnetConfiguration = "INVALID_SUBNET_CONFIGURATION" )
const ( // FleetStateStarting is a FleetState enum value FleetStateStarting = "STARTING" // FleetStateRunning is a FleetState enum value FleetStateRunning = "RUNNING" // FleetStateStopping is a FleetState enum value FleetStateStopping = "STOPPING" // FleetStateStopped is a FleetState enum value FleetStateStopped = "STOPPED" )
const ( // ImageStatePending is a ImageState enum value ImageStatePending = "PENDING" // ImageStateAvailable is a ImageState enum value ImageStateAvailable = "AVAILABLE" // ImageStateFailed is a ImageState enum value ImageStateFailed = "FAILED" // ImageStateDeleting is a ImageState enum value ImageStateDeleting = "DELETING" )
const ( // ImageStateChangeReasonCodeInternalError is a ImageStateChangeReasonCode enum value ImageStateChangeReasonCodeInternalError = "INTERNAL_ERROR" // ImageStateChangeReasonCodeImageBuilderNotAvailable is a ImageStateChangeReasonCode enum value ImageStateChangeReasonCodeImageBuilderNotAvailable = "IMAGE_BUILDER_NOT_AVAILABLE" )
const ( // SessionStateActive is a SessionState enum value SessionStateActive = "ACTIVE" // SessionStatePending is a SessionState enum value SessionStatePending = "PENDING" // SessionStateExpired is a SessionState enum value SessionStateExpired = "EXPIRED" )
Possible values for the state of a streaming session.
const ( // VisibilityTypePublic is a VisibilityType enum value VisibilityTypePublic = "PUBLIC" // VisibilityTypePrivate is a VisibilityType enum value VisibilityTypePrivate = "PRIVATE" )
const (
// PlatformTypeWindows is a PlatformType enum value
PlatformTypeWindows = "WINDOWS"
)
const ServiceName = "appstream2"
A ServiceName is the name of the service the client will make API calls to.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppStream ¶
API documentation for Amazon AppStream 2.0. The service client's operations are safe to be used concurrently. It is not safe to mutate any of the client's properties though.
func New ¶
func New(p client.ConfigProvider, cfgs ...*aws.Config) *AppStream
New creates a new instance of the AppStream client with a session. If additional configuration is needed for the client instance use the optional aws.Config parameter to add your extra config.
Example:
// Create a AppStream client from just a session. svc := appstream.New(mySession) // Create a AppStream client with additional configuration svc := appstream.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func (*AppStream) AssociateFleet ¶
func (c *AppStream) AssociateFleet(input *AssociateFleetInput) (*AssociateFleetOutput, error)
AssociateFleet API operation for Amazon AppStream.
Associate a fleet to a stack.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon AppStream's API operation AssociateFleet for usage and error information.
Returned Error Codes:
LimitExceededException The requested limit exceeds the permitted limit for an account.
ResourceNotFoundException The specified resource was not found.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/appstream" ) func main() { sess, err := session.NewSession() if err != nil { fmt.Println("failed to create session,", err) return } svc := appstream.New(sess) params := &appstream.AssociateFleetInput{ FleetName: aws.String("String"), // Required StackName: aws.String("String"), // Required } resp, err := svc.AssociateFleet(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*AppStream) AssociateFleetRequest ¶
func (c *AppStream) AssociateFleetRequest(input *AssociateFleetInput) (req *request.Request, output *AssociateFleetOutput)
AssociateFleetRequest generates a "aws/request.Request" representing the client's request for the AssociateFleet operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See AssociateFleet for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the AssociateFleet method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// Example sending a request using the AssociateFleetRequest method. req, resp := client.AssociateFleetRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
func (*AppStream) CreateFleet ¶
func (c *AppStream) CreateFleet(input *CreateFleetInput) (*CreateFleetOutput, error)
CreateFleet API operation for Amazon AppStream.
Creates a new fleet.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon AppStream's API operation CreateFleet for usage and error information.
Returned Error Codes:
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.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/appstream" ) func main() { sess, err := session.NewSession() if err != nil { fmt.Println("failed to create session,", err) return } svc := appstream.New(sess) params := &appstream.CreateFleetInput{ ComputeCapacity: &appstream.ComputeCapacity{ // Required DesiredInstances: aws.Int64(1), // Required }, ImageName: aws.String("String"), // Required InstanceType: aws.String("String"), // Required Name: aws.String("Name"), // Required Description: aws.String("Description"), DisconnectTimeoutInSeconds: aws.Int64(1), DisplayName: aws.String("DisplayName"), MaxUserDurationInSeconds: aws.Int64(1), VpcConfig: &appstream.VpcConfig{ SubnetIds: []*string{ // Required aws.String("String"), // Required // More values... }, }, } resp, err := svc.CreateFleet(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*AppStream) CreateFleetRequest ¶
func (c *AppStream) CreateFleetRequest(input *CreateFleetInput) (req *request.Request, output *CreateFleetOutput)
CreateFleetRequest generates a "aws/request.Request" representing the client's request for the CreateFleet operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See CreateFleet for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the CreateFleet method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// Example sending a request using the CreateFleetRequest method. req, resp := client.CreateFleetRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
func (*AppStream) CreateStack ¶
func (c *AppStream) CreateStack(input *CreateStackInput) (*CreateStackOutput, error)
CreateStack API operation for Amazon AppStream.
Create a new stack.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon AppStream's API operation CreateStack for usage and error information.
Returned Error Codes:
LimitExceededException The requested limit exceeds the permitted limit for an account.
ResourceAlreadyExistsException The specified resource already exists.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/appstream" ) func main() { sess, err := session.NewSession() if err != nil { fmt.Println("failed to create session,", err) return } svc := appstream.New(sess) params := &appstream.CreateStackInput{ Name: aws.String("String"), // Required Description: aws.String("Description"), DisplayName: aws.String("DisplayName"), } resp, err := svc.CreateStack(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*AppStream) CreateStackRequest ¶
func (c *AppStream) CreateStackRequest(input *CreateStackInput) (req *request.Request, output *CreateStackOutput)
CreateStackRequest generates a "aws/request.Request" representing the client's request for the CreateStack operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See CreateStack for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the CreateStack method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// Example sending a request using the CreateStackRequest method. req, resp := client.CreateStackRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
func (*AppStream) CreateStreamingURL ¶
func (c *AppStream) CreateStreamingURL(input *CreateStreamingURLInput) (*CreateStreamingURLOutput, error)
CreateStreamingURL API operation for Amazon AppStream.
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.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon AppStream's API operation CreateStreamingURL for usage and error information.
Returned Error Codes:
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.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/appstream" ) func main() { sess, err := session.NewSession() if err != nil { fmt.Println("failed to create session,", err) return } svc := appstream.New(sess) params := &appstream.CreateStreamingURLInput{ FleetName: aws.String("String"), // Required StackName: aws.String("String"), // Required UserId: aws.String("UserId"), // Required ApplicationId: aws.String("String"), SessionContext: aws.String("String"), Validity: aws.Int64(1), } resp, err := svc.CreateStreamingURL(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*AppStream) CreateStreamingURLRequest ¶
func (c *AppStream) CreateStreamingURLRequest(input *CreateStreamingURLInput) (req *request.Request, output *CreateStreamingURLOutput)
CreateStreamingURLRequest generates a "aws/request.Request" representing the client's request for the CreateStreamingURL operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See CreateStreamingURL for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the CreateStreamingURL method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// Example sending a request using the CreateStreamingURLRequest method. req, resp := client.CreateStreamingURLRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
func (*AppStream) DeleteFleet ¶
func (c *AppStream) DeleteFleet(input *DeleteFleetInput) (*DeleteFleetOutput, error)
DeleteFleet API operation for Amazon AppStream.
Deletes a fleet.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon AppStream's API operation DeleteFleet for usage and error information.
Returned Error Codes:
ResourceInUseException The specified resource is in use.
ResourceNotFoundException The specified resource was not found.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/appstream" ) func main() { sess, err := session.NewSession() if err != nil { fmt.Println("failed to create session,", err) return } svc := appstream.New(sess) params := &appstream.DeleteFleetInput{ Name: aws.String("String"), // Required } resp, err := svc.DeleteFleet(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*AppStream) DeleteFleetRequest ¶
func (c *AppStream) DeleteFleetRequest(input *DeleteFleetInput) (req *request.Request, output *DeleteFleetOutput)
DeleteFleetRequest generates a "aws/request.Request" representing the client's request for the DeleteFleet operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See DeleteFleet for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the DeleteFleet method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// Example sending a request using the DeleteFleetRequest method. req, resp := client.DeleteFleetRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
func (*AppStream) DeleteStack ¶
func (c *AppStream) DeleteStack(input *DeleteStackInput) (*DeleteStackOutput, error)
DeleteStack API operation for Amazon AppStream.
Deletes the stack. After this operation completes, the environment can no longer be activated, and any reservations made for the stack are released.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon AppStream's API operation DeleteStack for usage and error information.
Returned Error Codes:
ResourceInUseException The specified resource is in use.
ResourceNotFoundException The specified resource was not found.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/appstream" ) func main() { sess, err := session.NewSession() if err != nil { fmt.Println("failed to create session,", err) return } svc := appstream.New(sess) params := &appstream.DeleteStackInput{ Name: aws.String("String"), // Required } resp, err := svc.DeleteStack(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*AppStream) DeleteStackRequest ¶
func (c *AppStream) DeleteStackRequest(input *DeleteStackInput) (req *request.Request, output *DeleteStackOutput)
DeleteStackRequest generates a "aws/request.Request" representing the client's request for the DeleteStack operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See DeleteStack for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the DeleteStack method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// Example sending a request using the DeleteStackRequest method. req, resp := client.DeleteStackRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
func (*AppStream) DescribeFleets ¶
func (c *AppStream) DescribeFleets(input *DescribeFleetsInput) (*DescribeFleetsOutput, error)
DescribeFleets API operation for Amazon AppStream.
If fleet names are provided, this operation describes the specified fleets; otherwise, all the fleets in the account are described.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon AppStream's API operation DescribeFleets for usage and error information.
Returned Error Codes:
- ResourceNotFoundException The specified resource was not found.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/appstream" ) func main() { sess, err := session.NewSession() if err != nil { fmt.Println("failed to create session,", err) return } svc := appstream.New(sess) params := &appstream.DescribeFleetsInput{ Names: []*string{ aws.String("String"), // Required // More values... }, NextToken: aws.String("String"), } resp, err := svc.DescribeFleets(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*AppStream) DescribeFleetsRequest ¶
func (c *AppStream) DescribeFleetsRequest(input *DescribeFleetsInput) (req *request.Request, output *DescribeFleetsOutput)
DescribeFleetsRequest generates a "aws/request.Request" representing the client's request for the DescribeFleets operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See DescribeFleets for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the DescribeFleets method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// Example sending a request using the DescribeFleetsRequest method. req, resp := client.DescribeFleetsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
func (*AppStream) DescribeImages ¶
func (c *AppStream) DescribeImages(input *DescribeImagesInput) (*DescribeImagesOutput, error)
DescribeImages API operation for Amazon AppStream.
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.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon AppStream's API operation DescribeImages for usage and error information.
Returned Error Codes:
- ResourceNotFoundException The specified resource was not found.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/appstream" ) func main() { sess, err := session.NewSession() if err != nil { fmt.Println("failed to create session,", err) return } svc := appstream.New(sess) params := &appstream.DescribeImagesInput{ Names: []*string{ aws.String("String"), // Required // More values... }, } resp, err := svc.DescribeImages(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*AppStream) DescribeImagesRequest ¶
func (c *AppStream) DescribeImagesRequest(input *DescribeImagesInput) (req *request.Request, output *DescribeImagesOutput)
DescribeImagesRequest generates a "aws/request.Request" representing the client's request for the DescribeImages operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See DescribeImages for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the DescribeImages method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// Example sending a request using the DescribeImagesRequest method. req, resp := client.DescribeImagesRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
func (*AppStream) DescribeSessions ¶
func (c *AppStream) DescribeSessions(input *DescribeSessionsInput) (*DescribeSessionsOutput, error)
DescribeSessions API operation for Amazon AppStream.
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.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon AppStream's API operation DescribeSessions for usage and error information.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/appstream" ) func main() { sess, err := session.NewSession() if err != nil { fmt.Println("failed to create session,", err) return } svc := appstream.New(sess) params := &appstream.DescribeSessionsInput{ FleetName: aws.String("String"), // Required StackName: aws.String("String"), // Required Limit: aws.Int64(1), NextToken: aws.String("String"), UserId: aws.String("UserId"), } resp, err := svc.DescribeSessions(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*AppStream) DescribeSessionsRequest ¶
func (c *AppStream) DescribeSessionsRequest(input *DescribeSessionsInput) (req *request.Request, output *DescribeSessionsOutput)
DescribeSessionsRequest generates a "aws/request.Request" representing the client's request for the DescribeSessions operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See DescribeSessions for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the DescribeSessions method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// Example sending a request using the DescribeSessionsRequest method. req, resp := client.DescribeSessionsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
func (*AppStream) DescribeStacks ¶
func (c *AppStream) DescribeStacks(input *DescribeStacksInput) (*DescribeStacksOutput, error)
DescribeStacks API operation for Amazon AppStream.
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.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon AppStream's API operation DescribeStacks for usage and error information.
Returned Error Codes:
- ResourceNotFoundException The specified resource was not found.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/appstream" ) func main() { sess, err := session.NewSession() if err != nil { fmt.Println("failed to create session,", err) return } svc := appstream.New(sess) params := &appstream.DescribeStacksInput{ Names: []*string{ aws.String("String"), // Required // More values... }, NextToken: aws.String("String"), } resp, err := svc.DescribeStacks(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*AppStream) DescribeStacksRequest ¶
func (c *AppStream) DescribeStacksRequest(input *DescribeStacksInput) (req *request.Request, output *DescribeStacksOutput)
DescribeStacksRequest generates a "aws/request.Request" representing the client's request for the DescribeStacks operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See DescribeStacks for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the DescribeStacks method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// Example sending a request using the DescribeStacksRequest method. req, resp := client.DescribeStacksRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
func (*AppStream) DisassociateFleet ¶
func (c *AppStream) DisassociateFleet(input *DisassociateFleetInput) (*DisassociateFleetOutput, error)
DisassociateFleet API operation for Amazon AppStream.
Disassociates a fleet from a stack.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon AppStream's API operation DisassociateFleet for usage and error information.
Returned Error Codes:
ResourceInUseException The specified resource is in use.
ResourceNotFoundException The specified resource was not found.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/appstream" ) func main() { sess, err := session.NewSession() if err != nil { fmt.Println("failed to create session,", err) return } svc := appstream.New(sess) params := &appstream.DisassociateFleetInput{ FleetName: aws.String("String"), // Required StackName: aws.String("String"), // Required } resp, err := svc.DisassociateFleet(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*AppStream) DisassociateFleetRequest ¶
func (c *AppStream) DisassociateFleetRequest(input *DisassociateFleetInput) (req *request.Request, output *DisassociateFleetOutput)
DisassociateFleetRequest generates a "aws/request.Request" representing the client's request for the DisassociateFleet operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See DisassociateFleet for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the DisassociateFleet method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// Example sending a request using the DisassociateFleetRequest method. req, resp := client.DisassociateFleetRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
func (*AppStream) ExpireSession ¶
func (c *AppStream) ExpireSession(input *ExpireSessionInput) (*ExpireSessionOutput, error)
ExpireSession API operation for Amazon AppStream.
This operation immediately stops a streaming session.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon AppStream's API operation ExpireSession for usage and error information.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/appstream" ) func main() { sess, err := session.NewSession() if err != nil { fmt.Println("failed to create session,", err) return } svc := appstream.New(sess) params := &appstream.ExpireSessionInput{ SessionId: aws.String("String"), // Required } resp, err := svc.ExpireSession(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*AppStream) ExpireSessionRequest ¶
func (c *AppStream) ExpireSessionRequest(input *ExpireSessionInput) (req *request.Request, output *ExpireSessionOutput)
ExpireSessionRequest generates a "aws/request.Request" representing the client's request for the ExpireSession operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See ExpireSession for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the ExpireSession method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// Example sending a request using the ExpireSessionRequest method. req, resp := client.ExpireSessionRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
func (*AppStream) ListAssociatedFleets ¶
func (c *AppStream) ListAssociatedFleets(input *ListAssociatedFleetsInput) (*ListAssociatedFleetsOutput, error)
ListAssociatedFleets API operation for Amazon AppStream.
Lists all fleets associated with the stack.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon AppStream's API operation ListAssociatedFleets for usage and error information.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/appstream" ) func main() { sess, err := session.NewSession() if err != nil { fmt.Println("failed to create session,", err) return } svc := appstream.New(sess) params := &appstream.ListAssociatedFleetsInput{ StackName: aws.String("String"), // Required NextToken: aws.String("String"), } resp, err := svc.ListAssociatedFleets(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*AppStream) ListAssociatedFleetsRequest ¶
func (c *AppStream) ListAssociatedFleetsRequest(input *ListAssociatedFleetsInput) (req *request.Request, output *ListAssociatedFleetsOutput)
ListAssociatedFleetsRequest generates a "aws/request.Request" representing the client's request for the ListAssociatedFleets operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See ListAssociatedFleets for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the ListAssociatedFleets method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// Example sending a request using the ListAssociatedFleetsRequest method. req, resp := client.ListAssociatedFleetsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
func (*AppStream) ListAssociatedStacks ¶
func (c *AppStream) ListAssociatedStacks(input *ListAssociatedStacksInput) (*ListAssociatedStacksOutput, error)
ListAssociatedStacks API operation for Amazon AppStream.
Lists all stacks to which the specified fleet is associated.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon AppStream's API operation ListAssociatedStacks for usage and error information.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/appstream" ) func main() { sess, err := session.NewSession() if err != nil { fmt.Println("failed to create session,", err) return } svc := appstream.New(sess) params := &appstream.ListAssociatedStacksInput{ FleetName: aws.String("String"), // Required NextToken: aws.String("String"), } resp, err := svc.ListAssociatedStacks(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*AppStream) ListAssociatedStacksRequest ¶
func (c *AppStream) ListAssociatedStacksRequest(input *ListAssociatedStacksInput) (req *request.Request, output *ListAssociatedStacksOutput)
ListAssociatedStacksRequest generates a "aws/request.Request" representing the client's request for the ListAssociatedStacks operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See ListAssociatedStacks for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the ListAssociatedStacks method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// Example sending a request using the ListAssociatedStacksRequest method. req, resp := client.ListAssociatedStacksRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
func (*AppStream) StartFleet ¶
func (c *AppStream) StartFleet(input *StartFleetInput) (*StartFleetOutput, error)
StartFleet API operation for Amazon AppStream.
Starts a fleet.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon AppStream's API operation StartFleet for usage and error information.
Returned Error Codes:
ResourceNotFoundException The specified resource was not found.
LimitExceededException The requested limit exceeds the permitted limit for an account.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/appstream" ) func main() { sess, err := session.NewSession() if err != nil { fmt.Println("failed to create session,", err) return } svc := appstream.New(sess) params := &appstream.StartFleetInput{ Name: aws.String("String"), // Required } resp, err := svc.StartFleet(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*AppStream) StartFleetRequest ¶
func (c *AppStream) StartFleetRequest(input *StartFleetInput) (req *request.Request, output *StartFleetOutput)
StartFleetRequest generates a "aws/request.Request" representing the client's request for the StartFleet operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See StartFleet for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the StartFleet method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// Example sending a request using the StartFleetRequest method. req, resp := client.StartFleetRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
func (*AppStream) StopFleet ¶
func (c *AppStream) StopFleet(input *StopFleetInput) (*StopFleetOutput, error)
StopFleet API operation for Amazon AppStream.
Stops a fleet.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon AppStream's API operation StopFleet for usage and error information.
Returned Error Codes:
- ResourceNotFoundException The specified resource was not found.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/appstream" ) func main() { sess, err := session.NewSession() if err != nil { fmt.Println("failed to create session,", err) return } svc := appstream.New(sess) params := &appstream.StopFleetInput{ Name: aws.String("String"), // Required } resp, err := svc.StopFleet(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*AppStream) StopFleetRequest ¶
func (c *AppStream) StopFleetRequest(input *StopFleetInput) (req *request.Request, output *StopFleetOutput)
StopFleetRequest generates a "aws/request.Request" representing the client's request for the StopFleet operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See StopFleet for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the StopFleet method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// Example sending a request using the StopFleetRequest method. req, resp := client.StopFleetRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
func (*AppStream) UpdateFleet ¶
func (c *AppStream) UpdateFleet(input *UpdateFleetInput) (*UpdateFleetOutput, error)
UpdateFleet API operation for Amazon AppStream.
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.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon AppStream's API operation UpdateFleet for usage and error information.
Returned Error Codes:
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.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/appstream" ) func main() { sess, err := session.NewSession() if err != nil { fmt.Println("failed to create session,", err) return } svc := appstream.New(sess) params := &appstream.UpdateFleetInput{ Name: aws.String("String"), // Required ComputeCapacity: &appstream.ComputeCapacity{ DesiredInstances: aws.Int64(1), // Required }, DeleteVpcConfig: aws.Bool(true), Description: aws.String("Description"), DisconnectTimeoutInSeconds: aws.Int64(1), DisplayName: aws.String("DisplayName"), ImageName: aws.String("String"), InstanceType: aws.String("String"), MaxUserDurationInSeconds: aws.Int64(1), VpcConfig: &appstream.VpcConfig{ SubnetIds: []*string{ // Required aws.String("String"), // Required // More values... }, }, } resp, err := svc.UpdateFleet(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*AppStream) UpdateFleetRequest ¶
func (c *AppStream) UpdateFleetRequest(input *UpdateFleetInput) (req *request.Request, output *UpdateFleetOutput)
UpdateFleetRequest generates a "aws/request.Request" representing the client's request for the UpdateFleet operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See UpdateFleet for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the UpdateFleet method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// Example sending a request using the UpdateFleetRequest method. req, resp := client.UpdateFleetRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
func (*AppStream) UpdateStack ¶
func (c *AppStream) UpdateStack(input *UpdateStackInput) (*UpdateStackOutput, error)
UpdateStack API operation for Amazon AppStream.
Updates the specified fields in the stack with the specified name.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon AppStream's API operation UpdateStack for usage and error information.
Returned Error Codes:
ResourceNotFoundException The specified resource was not found.
ResourceInUseException The specified resource is in use.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/appstream" ) func main() { sess, err := session.NewSession() if err != nil { fmt.Println("failed to create session,", err) return } svc := appstream.New(sess) params := &appstream.UpdateStackInput{ Name: aws.String("String"), // Required Description: aws.String("Description"), DisplayName: aws.String("DisplayName"), } resp, err := svc.UpdateStack(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*AppStream) UpdateStackRequest ¶
func (c *AppStream) UpdateStackRequest(input *UpdateStackInput) (req *request.Request, output *UpdateStackOutput)
UpdateStackRequest generates a "aws/request.Request" representing the client's request for the UpdateStack operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See UpdateStack for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the UpdateStack method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// Example sending a request using the UpdateStackRequest method. req, resp := client.UpdateStackRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
func (*AppStream) WaitUntilFleetStarted ¶
func (c *AppStream) WaitUntilFleetStarted(input *DescribeFleetsInput) error
WaitUntilFleetStarted uses the Amazon AppStream API operation DescribeFleets to wait for a condition to be met before returning. If the condition is not meet within the max attempt window an error will be returned.
func (*AppStream) WaitUntilFleetStopped ¶
func (c *AppStream) WaitUntilFleetStopped(input *DescribeFleetsInput) error
WaitUntilFleetStopped uses the Amazon AppStream API operation DescribeFleets to wait for a condition to be met before returning. If the condition is not meet within the max attempt window an error will be returned.
type Application ¶
type Application struct { // The name of the application shown to the end users. DisplayName *string `min:"1" type:"string"` // An application can be disabled after image creation if there is a problem. Enabled *bool `type:"boolean"` // The URL for the application icon. This URL may be time-limited. IconURL *string `min:"1" type:"string"` // A list of arguments that are passed to the application at launch. LaunchParameters *string `min:"1" type:"string"` // The path to the application executable in the instance. LaunchPath *string `min:"1" type:"string"` // Additional attributes that describes the application. Metadata map[string]*string `type:"map"` // The unique identifier for the application. Name *string `min:"1" type:"string"` // contains filtered or unexported fields }
An entry for a single application in the application catalog.
func (Application) GoString ¶
func (s Application) GoString() string
GoString returns the string representation
func (*Application) SetDisplayName ¶
func (s *Application) SetDisplayName(v string) *Application
SetDisplayName sets the DisplayName field's value.
func (*Application) SetEnabled ¶
func (s *Application) SetEnabled(v bool) *Application
SetEnabled sets the Enabled field's value.
func (*Application) SetIconURL ¶
func (s *Application) SetIconURL(v string) *Application
SetIconURL sets the IconURL field's value.
func (*Application) SetLaunchParameters ¶
func (s *Application) SetLaunchParameters(v string) *Application
SetLaunchParameters sets the LaunchParameters field's value.
func (*Application) SetLaunchPath ¶
func (s *Application) SetLaunchPath(v string) *Application
SetLaunchPath sets the LaunchPath field's value.
func (*Application) SetMetadata ¶
func (s *Application) SetMetadata(v map[string]*string) *Application
SetMetadata sets the Metadata field's value.
func (*Application) SetName ¶
func (s *Application) SetName(v string) *Application
SetName sets the Name field's value.
func (Application) String ¶
func (s Application) String() string
String returns the string representation
type AssociateFleetInput ¶
type AssociateFleetInput struct { // The name of the fleet to associate. // // FleetName is a required field FleetName *string `min:"1" type:"string" required:"true"` // The name of the stack to which the fleet is associated. // // StackName is a required field StackName *string `min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
func (AssociateFleetInput) GoString ¶
func (s AssociateFleetInput) GoString() string
GoString returns the string representation
func (*AssociateFleetInput) SetFleetName ¶
func (s *AssociateFleetInput) SetFleetName(v string) *AssociateFleetInput
SetFleetName sets the FleetName field's value.
func (*AssociateFleetInput) SetStackName ¶
func (s *AssociateFleetInput) SetStackName(v string) *AssociateFleetInput
SetStackName sets the StackName field's value.
func (AssociateFleetInput) String ¶
func (s AssociateFleetInput) String() string
String returns the string representation
func (*AssociateFleetInput) Validate ¶
func (s *AssociateFleetInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type AssociateFleetOutput ¶
type AssociateFleetOutput struct {
// contains filtered or unexported fields
}
func (AssociateFleetOutput) GoString ¶
func (s AssociateFleetOutput) GoString() string
GoString returns the string representation
func (AssociateFleetOutput) String ¶
func (s AssociateFleetOutput) String() string
String returns the string representation
type ComputeCapacity ¶
type ComputeCapacity struct { // The desired number of streaming instances. // // DesiredInstances is a required field DesiredInstances *int64 `type:"integer" required:"true"` // contains filtered or unexported fields }
The capacity configuration for the fleet.
func (ComputeCapacity) GoString ¶
func (s ComputeCapacity) GoString() string
GoString returns the string representation
func (*ComputeCapacity) SetDesiredInstances ¶
func (s *ComputeCapacity) SetDesiredInstances(v int64) *ComputeCapacity
SetDesiredInstances sets the DesiredInstances field's value.
func (ComputeCapacity) String ¶
func (s ComputeCapacity) String() string
String returns the string representation
func (*ComputeCapacity) Validate ¶
func (s *ComputeCapacity) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ComputeCapacityStatus ¶
type ComputeCapacityStatus struct { // The number of currently available instances that can be used to stream sessions. Available *int64 `type:"integer"` // The desired number of streaming instances. // // Desired is a required field Desired *int64 `type:"integer" required:"true"` // The number of instances that are being used for streaming. InUse *int64 `type:"integer"` // The total number of simultaneous streaming instances that are running. Running *int64 `type:"integer"` // contains filtered or unexported fields }
The capacity information for the fleet.
func (ComputeCapacityStatus) GoString ¶
func (s ComputeCapacityStatus) GoString() string
GoString returns the string representation
func (*ComputeCapacityStatus) SetAvailable ¶
func (s *ComputeCapacityStatus) SetAvailable(v int64) *ComputeCapacityStatus
SetAvailable sets the Available field's value.
func (*ComputeCapacityStatus) SetDesired ¶
func (s *ComputeCapacityStatus) SetDesired(v int64) *ComputeCapacityStatus
SetDesired sets the Desired field's value.
func (*ComputeCapacityStatus) SetInUse ¶
func (s *ComputeCapacityStatus) SetInUse(v int64) *ComputeCapacityStatus
SetInUse sets the InUse field's value.
func (*ComputeCapacityStatus) SetRunning ¶
func (s *ComputeCapacityStatus) SetRunning(v int64) *ComputeCapacityStatus
SetRunning sets the Running field's value.
func (ComputeCapacityStatus) String ¶
func (s ComputeCapacityStatus) String() string
String returns the string representation
type CreateFleetInput ¶
type CreateFleetInput struct { // The parameters for the capacity allocated to the fleet. // // ComputeCapacity is a required field ComputeCapacity *ComputeCapacity `type:"structure" required:"true"` // The description of the fleet. Description *string `type:"string"` // The time after disconnection when a session is considered to have ended. // If a user who got disconnected reconnects within this timeout interval, the // user is connected back to his/her previous session. DisconnectTimeoutInSeconds *int64 `type:"integer"` // The display name of the fleet. DisplayName *string `type:"string"` // Unique name of the image used by the fleet. // // ImageName is a required field ImageName *string `min:"1" type:"string" required:"true"` // The instance type of compute resources for the fleet. Fleet instances are // launched from this instance type. // // InstanceType is a required field InstanceType *string `min:"1" type:"string" required:"true"` // The maximum time up to which a streaming session can run. MaxUserDurationInSeconds *int64 `type:"integer"` // A unique identifier for the fleet. // // Name is a required field Name *string `type:"string" required:"true"` // The VPC configuration for the fleet. VpcConfig *VpcConfig `type:"structure"` // contains filtered or unexported fields }
Contains the parameters for the new fleet to create.
func (CreateFleetInput) GoString ¶
func (s CreateFleetInput) GoString() string
GoString returns the string representation
func (*CreateFleetInput) SetComputeCapacity ¶
func (s *CreateFleetInput) SetComputeCapacity(v *ComputeCapacity) *CreateFleetInput
SetComputeCapacity sets the ComputeCapacity field's value.
func (*CreateFleetInput) SetDescription ¶
func (s *CreateFleetInput) SetDescription(v string) *CreateFleetInput
SetDescription sets the Description field's value.
func (*CreateFleetInput) SetDisconnectTimeoutInSeconds ¶
func (s *CreateFleetInput) SetDisconnectTimeoutInSeconds(v int64) *CreateFleetInput
SetDisconnectTimeoutInSeconds sets the DisconnectTimeoutInSeconds field's value.
func (*CreateFleetInput) SetDisplayName ¶
func (s *CreateFleetInput) SetDisplayName(v string) *CreateFleetInput
SetDisplayName sets the DisplayName field's value.
func (*CreateFleetInput) SetImageName ¶
func (s *CreateFleetInput) SetImageName(v string) *CreateFleetInput
SetImageName sets the ImageName field's value.
func (*CreateFleetInput) SetInstanceType ¶
func (s *CreateFleetInput) SetInstanceType(v string) *CreateFleetInput
SetInstanceType sets the InstanceType field's value.
func (*CreateFleetInput) SetMaxUserDurationInSeconds ¶
func (s *CreateFleetInput) SetMaxUserDurationInSeconds(v int64) *CreateFleetInput
SetMaxUserDurationInSeconds sets the MaxUserDurationInSeconds field's value.
func (*CreateFleetInput) SetName ¶
func (s *CreateFleetInput) SetName(v string) *CreateFleetInput
SetName sets the Name field's value.
func (*CreateFleetInput) SetVpcConfig ¶
func (s *CreateFleetInput) SetVpcConfig(v *VpcConfig) *CreateFleetInput
SetVpcConfig sets the VpcConfig field's value.
func (CreateFleetInput) String ¶
func (s CreateFleetInput) String() string
String returns the string representation
func (*CreateFleetInput) Validate ¶
func (s *CreateFleetInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type CreateFleetOutput ¶
type CreateFleetOutput struct { // The details for the created fleet. Fleet *Fleet `type:"structure"` // contains filtered or unexported fields }
func (CreateFleetOutput) GoString ¶
func (s CreateFleetOutput) GoString() string
GoString returns the string representation
func (*CreateFleetOutput) SetFleet ¶
func (s *CreateFleetOutput) SetFleet(v *Fleet) *CreateFleetOutput
SetFleet sets the Fleet field's value.
func (CreateFleetOutput) String ¶
func (s CreateFleetOutput) String() string
String returns the string representation
type CreateStackInput ¶
type CreateStackInput struct { // The description displayed to end users on the AppStream 2.0 portal. Description *string `type:"string"` // The name displayed to end users on the AppStream 2.0 portal. DisplayName *string `type:"string"` // The unique identifier for this stack. // // Name is a required field Name *string `min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
func (CreateStackInput) GoString ¶
func (s CreateStackInput) GoString() string
GoString returns the string representation
func (*CreateStackInput) SetDescription ¶
func (s *CreateStackInput) SetDescription(v string) *CreateStackInput
SetDescription sets the Description field's value.
func (*CreateStackInput) SetDisplayName ¶
func (s *CreateStackInput) SetDisplayName(v string) *CreateStackInput
SetDisplayName sets the DisplayName field's value.
func (*CreateStackInput) SetName ¶
func (s *CreateStackInput) SetName(v string) *CreateStackInput
SetName sets the Name field's value.
func (CreateStackInput) String ¶
func (s CreateStackInput) String() string
String returns the string representation
func (*CreateStackInput) Validate ¶
func (s *CreateStackInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type CreateStackOutput ¶
type CreateStackOutput struct { // The details for the created stack. Stack *Stack `type:"structure"` // contains filtered or unexported fields }
func (CreateStackOutput) GoString ¶
func (s CreateStackOutput) GoString() string
GoString returns the string representation
func (*CreateStackOutput) SetStack ¶
func (s *CreateStackOutput) SetStack(v *Stack) *CreateStackOutput
SetStack sets the Stack field's value.
func (CreateStackOutput) String ¶
func (s CreateStackOutput) String() string
String returns the string representation
type CreateStreamingURLInput ¶
type CreateStreamingURLInput struct { // The ID of the application that must be launched after the session starts. ApplicationId *string `min:"1" type:"string"` // The fleet for which the URL is generated. // // FleetName is a required field FleetName *string `min:"1" type:"string" required:"true"` // The sessionContext of the streaming URL. SessionContext *string `min:"1" type:"string"` // The stack for which the URL is generated. // // StackName is a required field StackName *string `min:"1" type:"string" required:"true"` // A unique user ID for whom the URL is generated. // // UserId is a required field UserId *string `min:"2" type:"string" required:"true"` // The validity duration of the URL in seconds. After this duration, the URL // returned by this operation becomes invalid. Validity *int64 `type:"long"` // contains filtered or unexported fields }
func (CreateStreamingURLInput) GoString ¶
func (s CreateStreamingURLInput) GoString() string
GoString returns the string representation
func (*CreateStreamingURLInput) SetApplicationId ¶
func (s *CreateStreamingURLInput) SetApplicationId(v string) *CreateStreamingURLInput
SetApplicationId sets the ApplicationId field's value.
func (*CreateStreamingURLInput) SetFleetName ¶
func (s *CreateStreamingURLInput) SetFleetName(v string) *CreateStreamingURLInput
SetFleetName sets the FleetName field's value.
func (*CreateStreamingURLInput) SetSessionContext ¶
func (s *CreateStreamingURLInput) SetSessionContext(v string) *CreateStreamingURLInput
SetSessionContext sets the SessionContext field's value.
func (*CreateStreamingURLInput) SetStackName ¶
func (s *CreateStreamingURLInput) SetStackName(v string) *CreateStreamingURLInput
SetStackName sets the StackName field's value.
func (*CreateStreamingURLInput) SetUserId ¶
func (s *CreateStreamingURLInput) SetUserId(v string) *CreateStreamingURLInput
SetUserId sets the UserId field's value.
func (*CreateStreamingURLInput) SetValidity ¶
func (s *CreateStreamingURLInput) SetValidity(v int64) *CreateStreamingURLInput
SetValidity sets the Validity field's value.
func (CreateStreamingURLInput) String ¶
func (s CreateStreamingURLInput) String() string
String returns the string representation
func (*CreateStreamingURLInput) Validate ¶
func (s *CreateStreamingURLInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type CreateStreamingURLOutput ¶
type CreateStreamingURLOutput struct { // Elapsed seconds after the Unix epoch, at which time this URL expires. Expires *time.Time `type:"timestamp" timestampFormat:"unix"` // The URL to start the AppStream 2.0 streaming session. StreamingURL *string `min:"1" type:"string"` // contains filtered or unexported fields }
func (CreateStreamingURLOutput) GoString ¶
func (s CreateStreamingURLOutput) GoString() string
GoString returns the string representation
func (*CreateStreamingURLOutput) SetExpires ¶
func (s *CreateStreamingURLOutput) SetExpires(v time.Time) *CreateStreamingURLOutput
SetExpires sets the Expires field's value.
func (*CreateStreamingURLOutput) SetStreamingURL ¶
func (s *CreateStreamingURLOutput) SetStreamingURL(v string) *CreateStreamingURLOutput
SetStreamingURL sets the StreamingURL field's value.
func (CreateStreamingURLOutput) String ¶
func (s CreateStreamingURLOutput) String() string
String returns the string representation
type DeleteFleetInput ¶
type DeleteFleetInput struct { // The name of the fleet to be deleted. // // Name is a required field Name *string `min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
func (DeleteFleetInput) GoString ¶
func (s DeleteFleetInput) GoString() string
GoString returns the string representation
func (*DeleteFleetInput) SetName ¶
func (s *DeleteFleetInput) SetName(v string) *DeleteFleetInput
SetName sets the Name field's value.
func (DeleteFleetInput) String ¶
func (s DeleteFleetInput) String() string
String returns the string representation
func (*DeleteFleetInput) Validate ¶
func (s *DeleteFleetInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteFleetOutput ¶
type DeleteFleetOutput struct {
// contains filtered or unexported fields
}
func (DeleteFleetOutput) GoString ¶
func (s DeleteFleetOutput) GoString() string
GoString returns the string representation
func (DeleteFleetOutput) String ¶
func (s DeleteFleetOutput) String() string
String returns the string representation
type DeleteStackInput ¶
type DeleteStackInput struct { // The name of the stack to delete. // // Name is a required field Name *string `min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
func (DeleteStackInput) GoString ¶
func (s DeleteStackInput) GoString() string
GoString returns the string representation
func (*DeleteStackInput) SetName ¶
func (s *DeleteStackInput) SetName(v string) *DeleteStackInput
SetName sets the Name field's value.
func (DeleteStackInput) String ¶
func (s DeleteStackInput) String() string
String returns the string representation
func (*DeleteStackInput) Validate ¶
func (s *DeleteStackInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteStackOutput ¶
type DeleteStackOutput struct {
// contains filtered or unexported fields
}
func (DeleteStackOutput) GoString ¶
func (s DeleteStackOutput) GoString() string
GoString returns the string representation
func (DeleteStackOutput) String ¶
func (s DeleteStackOutput) String() string
String returns the string representation
type DescribeFleetsInput ¶
type DescribeFleetsInput struct { // The fleet names to describe. Use null to describe all the fleets for the // AWS account. Names []*string `type:"list"` // The pagination token to use to retrieve the next page of results for this // operation. If this value is null, it retrieves the first page. NextToken *string `min:"1" type:"string"` // contains filtered or unexported fields }
func (DescribeFleetsInput) GoString ¶
func (s DescribeFleetsInput) GoString() string
GoString returns the string representation
func (*DescribeFleetsInput) SetNames ¶
func (s *DescribeFleetsInput) SetNames(v []*string) *DescribeFleetsInput
SetNames sets the Names field's value.
func (*DescribeFleetsInput) SetNextToken ¶
func (s *DescribeFleetsInput) SetNextToken(v string) *DescribeFleetsInput
SetNextToken sets the NextToken field's value.
func (DescribeFleetsInput) String ¶
func (s DescribeFleetsInput) String() string
String returns the string representation
func (*DescribeFleetsInput) Validate ¶
func (s *DescribeFleetsInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DescribeFleetsOutput ¶
type DescribeFleetsOutput struct { // The list of fleet details. Fleets []*Fleet `type:"list"` // The pagination token to use to retrieve the next page of results for this // operation. If there are no more pages, this value is null. NextToken *string `min:"1" type:"string"` // contains filtered or unexported fields }
func (DescribeFleetsOutput) GoString ¶
func (s DescribeFleetsOutput) GoString() string
GoString returns the string representation
func (*DescribeFleetsOutput) SetFleets ¶
func (s *DescribeFleetsOutput) SetFleets(v []*Fleet) *DescribeFleetsOutput
SetFleets sets the Fleets field's value.
func (*DescribeFleetsOutput) SetNextToken ¶
func (s *DescribeFleetsOutput) SetNextToken(v string) *DescribeFleetsOutput
SetNextToken sets the NextToken field's value.
func (DescribeFleetsOutput) String ¶
func (s DescribeFleetsOutput) String() string
String returns the string representation
type DescribeImagesInput ¶
type DescribeImagesInput struct { // A specific list of images to describe. Names []*string `type:"list"` // contains filtered or unexported fields }
func (DescribeImagesInput) GoString ¶
func (s DescribeImagesInput) GoString() string
GoString returns the string representation
func (*DescribeImagesInput) SetNames ¶
func (s *DescribeImagesInput) SetNames(v []*string) *DescribeImagesInput
SetNames sets the Names field's value.
func (DescribeImagesInput) String ¶
func (s DescribeImagesInput) String() string
String returns the string representation
type DescribeImagesOutput ¶
type DescribeImagesOutput struct { // The list of images. Images []*Image `type:"list"` // contains filtered or unexported fields }
func (DescribeImagesOutput) GoString ¶
func (s DescribeImagesOutput) GoString() string
GoString returns the string representation
func (*DescribeImagesOutput) SetImages ¶
func (s *DescribeImagesOutput) SetImages(v []*Image) *DescribeImagesOutput
SetImages sets the Images field's value.
func (DescribeImagesOutput) String ¶
func (s DescribeImagesOutput) String() string
String returns the string representation
type DescribeSessionsInput ¶
type DescribeSessionsInput struct { // The name of the fleet for which to list sessions. // // FleetName is a required field FleetName *string `min:"1" type:"string" required:"true"` // The size of each page of results. The default value is 20 and the maximum // supported value is 50. Limit *int64 `type:"integer"` // The pagination token to use to retrieve the next page of results for this // operation. If this value is null, it retrieves the first page. NextToken *string `min:"1" type:"string"` // The name of the stack for which to list sessions. // // StackName is a required field StackName *string `min:"1" type:"string" required:"true"` // The user for whom to list sessions. Use null to describe all the sessions // for the stack and fleet. UserId *string `min:"2" type:"string"` // contains filtered or unexported fields }
func (DescribeSessionsInput) GoString ¶
func (s DescribeSessionsInput) GoString() string
GoString returns the string representation
func (*DescribeSessionsInput) SetFleetName ¶
func (s *DescribeSessionsInput) SetFleetName(v string) *DescribeSessionsInput
SetFleetName sets the FleetName field's value.
func (*DescribeSessionsInput) SetLimit ¶
func (s *DescribeSessionsInput) SetLimit(v int64) *DescribeSessionsInput
SetLimit sets the Limit field's value.
func (*DescribeSessionsInput) SetNextToken ¶
func (s *DescribeSessionsInput) SetNextToken(v string) *DescribeSessionsInput
SetNextToken sets the NextToken field's value.
func (*DescribeSessionsInput) SetStackName ¶
func (s *DescribeSessionsInput) SetStackName(v string) *DescribeSessionsInput
SetStackName sets the StackName field's value.
func (*DescribeSessionsInput) SetUserId ¶
func (s *DescribeSessionsInput) SetUserId(v string) *DescribeSessionsInput
SetUserId sets the UserId field's value.
func (DescribeSessionsInput) String ¶
func (s DescribeSessionsInput) String() string
String returns the string representation
func (*DescribeSessionsInput) Validate ¶
func (s *DescribeSessionsInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DescribeSessionsOutput ¶
type DescribeSessionsOutput struct { // The pagination token to use to retrieve the next page of results for this // operation. If there are no more pages, this value is null. NextToken *string `min:"1" type:"string"` // The list of streaming sessions. Sessions []*Session `type:"list"` // contains filtered or unexported fields }
func (DescribeSessionsOutput) GoString ¶
func (s DescribeSessionsOutput) GoString() string
GoString returns the string representation
func (*DescribeSessionsOutput) SetNextToken ¶
func (s *DescribeSessionsOutput) SetNextToken(v string) *DescribeSessionsOutput
SetNextToken sets the NextToken field's value.
func (*DescribeSessionsOutput) SetSessions ¶
func (s *DescribeSessionsOutput) SetSessions(v []*Session) *DescribeSessionsOutput
SetSessions sets the Sessions field's value.
func (DescribeSessionsOutput) String ¶
func (s DescribeSessionsOutput) String() string
String returns the string representation
type DescribeStacksInput ¶
type DescribeStacksInput struct { // The stack names to describe. Use null to describe all the stacks for the // AWS account. Names []*string `type:"list"` // The pagination token to use to retrieve the next page of results for this // operation. If this value is null, it retrieves the first page. NextToken *string `min:"1" type:"string"` // contains filtered or unexported fields }
func (DescribeStacksInput) GoString ¶
func (s DescribeStacksInput) GoString() string
GoString returns the string representation
func (*DescribeStacksInput) SetNames ¶
func (s *DescribeStacksInput) SetNames(v []*string) *DescribeStacksInput
SetNames sets the Names field's value.
func (*DescribeStacksInput) SetNextToken ¶
func (s *DescribeStacksInput) SetNextToken(v string) *DescribeStacksInput
SetNextToken sets the NextToken field's value.
func (DescribeStacksInput) String ¶
func (s DescribeStacksInput) String() string
String returns the string representation
func (*DescribeStacksInput) Validate ¶
func (s *DescribeStacksInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DescribeStacksOutput ¶
type DescribeStacksOutput struct { // The pagination token to use to retrieve the next page of results for this // operation. If there are no more pages, this value is null. NextToken *string `min:"1" type:"string"` // The list of stack details. Stacks []*Stack `type:"list"` // contains filtered or unexported fields }
func (DescribeStacksOutput) GoString ¶
func (s DescribeStacksOutput) GoString() string
GoString returns the string representation
func (*DescribeStacksOutput) SetNextToken ¶
func (s *DescribeStacksOutput) SetNextToken(v string) *DescribeStacksOutput
SetNextToken sets the NextToken field's value.
func (*DescribeStacksOutput) SetStacks ¶
func (s *DescribeStacksOutput) SetStacks(v []*Stack) *DescribeStacksOutput
SetStacks sets the Stacks field's value.
func (DescribeStacksOutput) String ¶
func (s DescribeStacksOutput) String() string
String returns the string representation
type DisassociateFleetInput ¶
type DisassociateFleetInput struct { // The name of the fleet to disassociate. // // FleetName is a required field FleetName *string `min:"1" type:"string" required:"true"` // The name of the stack with which the fleet is associated. // // StackName is a required field StackName *string `min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
func (DisassociateFleetInput) GoString ¶
func (s DisassociateFleetInput) GoString() string
GoString returns the string representation
func (*DisassociateFleetInput) SetFleetName ¶
func (s *DisassociateFleetInput) SetFleetName(v string) *DisassociateFleetInput
SetFleetName sets the FleetName field's value.
func (*DisassociateFleetInput) SetStackName ¶
func (s *DisassociateFleetInput) SetStackName(v string) *DisassociateFleetInput
SetStackName sets the StackName field's value.
func (DisassociateFleetInput) String ¶
func (s DisassociateFleetInput) String() string
String returns the string representation
func (*DisassociateFleetInput) Validate ¶
func (s *DisassociateFleetInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DisassociateFleetOutput ¶
type DisassociateFleetOutput struct {
// contains filtered or unexported fields
}
func (DisassociateFleetOutput) GoString ¶
func (s DisassociateFleetOutput) GoString() string
GoString returns the string representation
func (DisassociateFleetOutput) String ¶
func (s DisassociateFleetOutput) String() string
String returns the string representation
type ExpireSessionInput ¶
type ExpireSessionInput struct { // The unique identifier of the streaming session to be stopped. // // SessionId is a required field SessionId *string `min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
func (ExpireSessionInput) GoString ¶
func (s ExpireSessionInput) GoString() string
GoString returns the string representation
func (*ExpireSessionInput) SetSessionId ¶
func (s *ExpireSessionInput) SetSessionId(v string) *ExpireSessionInput
SetSessionId sets the SessionId field's value.
func (ExpireSessionInput) String ¶
func (s ExpireSessionInput) String() string
String returns the string representation
func (*ExpireSessionInput) Validate ¶
func (s *ExpireSessionInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ExpireSessionOutput ¶
type ExpireSessionOutput struct {
// contains filtered or unexported fields
}
func (ExpireSessionOutput) GoString ¶
func (s ExpireSessionOutput) GoString() string
GoString returns the string representation
func (ExpireSessionOutput) String ¶
func (s ExpireSessionOutput) String() string
String returns the string representation
type Fleet ¶
type Fleet struct { // The ARN for the fleet. // // Arn is a required field Arn *string `type:"string" required:"true"` // The capacity information for the fleet. // // ComputeCapacityStatus is a required field ComputeCapacityStatus *ComputeCapacityStatus `type:"structure" required:"true"` // The time at which the fleet was created. CreatedTime *time.Time `type:"timestamp" timestampFormat:"unix"` // The description displayed to end users on the AppStream 2.0 portal. Description *string `min:"1" type:"string"` // The time after disconnection when a session is considered to have ended. // When a user reconnects after a disconnection, the user is connected to the // same session and instance within this time interval. DisconnectTimeoutInSeconds *int64 `type:"integer"` // The name displayed to end users on the AppStream 2.0 portal. DisplayName *string `min:"1" type:"string"` // The list of fleet errors is appended to this list. FleetErrors []*FleetError `type:"list"` // The image used by the fleet. // // ImageName is a required field ImageName *string `min:"1" type:"string" required:"true"` // The instance type of compute resources for the fleet. The fleet instances // are launched from this instance type. // // InstanceType is a required field InstanceType *string `min:"1" type:"string" required:"true"` // The maximum time during which a streaming session can run. MaxUserDurationInSeconds *int64 `type:"integer"` // The name of the fleet. // // Name is a required field Name *string `min:"1" type:"string" required:"true"` // The current state for the fleet. // // State is a required field State *string `type:"string" required:"true" enum:"FleetState"` // The VPC configuration for the fleet. VpcConfig *VpcConfig `type:"structure"` // contains filtered or unexported fields }
Contains the parameters for a fleet.
func (*Fleet) SetComputeCapacityStatus ¶
func (s *Fleet) SetComputeCapacityStatus(v *ComputeCapacityStatus) *Fleet
SetComputeCapacityStatus sets the ComputeCapacityStatus field's value.
func (*Fleet) SetCreatedTime ¶
SetCreatedTime sets the CreatedTime field's value.
func (*Fleet) SetDescription ¶
SetDescription sets the Description field's value.
func (*Fleet) SetDisconnectTimeoutInSeconds ¶
SetDisconnectTimeoutInSeconds sets the DisconnectTimeoutInSeconds field's value.
func (*Fleet) SetDisplayName ¶
SetDisplayName sets the DisplayName field's value.
func (*Fleet) SetFleetErrors ¶
func (s *Fleet) SetFleetErrors(v []*FleetError) *Fleet
SetFleetErrors sets the FleetErrors field's value.
func (*Fleet) SetImageName ¶
SetImageName sets the ImageName field's value.
func (*Fleet) SetInstanceType ¶
SetInstanceType sets the InstanceType field's value.
func (*Fleet) SetMaxUserDurationInSeconds ¶
SetMaxUserDurationInSeconds sets the MaxUserDurationInSeconds field's value.
func (*Fleet) SetVpcConfig ¶
SetVpcConfig sets the VpcConfig field's value.
type FleetError ¶
type FleetError struct { // The error code for the fleet error. ErrorCode *string `type:"string" enum:"FleetErrorCode"` // The error message generated when the fleet has errors. ErrorMessage *string `min:"1" type:"string"` // contains filtered or unexported fields }
The details of the fleet error.
func (FleetError) GoString ¶
func (s FleetError) GoString() string
GoString returns the string representation
func (*FleetError) SetErrorCode ¶
func (s *FleetError) SetErrorCode(v string) *FleetError
SetErrorCode sets the ErrorCode field's value.
func (*FleetError) SetErrorMessage ¶
func (s *FleetError) SetErrorMessage(v string) *FleetError
SetErrorMessage sets the ErrorMessage field's value.
func (FleetError) String ¶
func (s FleetError) String() string
String returns the string representation
type Image ¶
type Image struct { // The applications associated with an image. Applications []*Application `type:"list"` // The ARN for the image. Arn *string `type:"string"` // The source image ARN from which this image was created. BaseImageArn *string `type:"string"` // The timestamp when the image was created. CreatedTime *time.Time `type:"timestamp" timestampFormat:"unix"` // A meaningful description for the image. Description *string `min:"1" type:"string"` // The display name for the image. DisplayName *string `min:"1" type:"string"` // The unique identifier for the image. // // Name is a required field Name *string `min:"1" type:"string" required:"true"` // The operating system platform of the image. Platform *string `type:"string" enum:"PlatformType"` // The image starts in the PENDING state, and then moves to AVAILABLE if image // creation succeeds and FAILED if image creation has failed. State *string `type:"string" enum:"ImageState"` // The reason why the last state change occurred. StateChangeReason *ImageStateChangeReason `type:"structure"` // The visibility of an image to the user; images can be public or private. Visibility *string `type:"string" enum:"VisibilityType"` // contains filtered or unexported fields }
New streaming instances are booted from images. The image stores the application catalog and is connected to fleets.
func (*Image) SetApplications ¶
func (s *Image) SetApplications(v []*Application) *Image
SetApplications sets the Applications field's value.
func (*Image) SetBaseImageArn ¶
SetBaseImageArn sets the BaseImageArn field's value.
func (*Image) SetCreatedTime ¶
SetCreatedTime sets the CreatedTime field's value.
func (*Image) SetDescription ¶
SetDescription sets the Description field's value.
func (*Image) SetDisplayName ¶
SetDisplayName sets the DisplayName field's value.
func (*Image) SetPlatform ¶
SetPlatform sets the Platform field's value.
func (*Image) SetStateChangeReason ¶
func (s *Image) SetStateChangeReason(v *ImageStateChangeReason) *Image
SetStateChangeReason sets the StateChangeReason field's value.
func (*Image) SetVisibility ¶
SetVisibility sets the Visibility field's value.
type ImageStateChangeReason ¶
type ImageStateChangeReason struct { // The state change reason code of the image. Code *string `type:"string" enum:"ImageStateChangeReasonCode"` // The state change reason message to the end user. Message *string `min:"1" type:"string"` // contains filtered or unexported fields }
The reason why the last state change occurred.
func (ImageStateChangeReason) GoString ¶
func (s ImageStateChangeReason) GoString() string
GoString returns the string representation
func (*ImageStateChangeReason) SetCode ¶
func (s *ImageStateChangeReason) SetCode(v string) *ImageStateChangeReason
SetCode sets the Code field's value.
func (*ImageStateChangeReason) SetMessage ¶
func (s *ImageStateChangeReason) SetMessage(v string) *ImageStateChangeReason
SetMessage sets the Message field's value.
func (ImageStateChangeReason) String ¶
func (s ImageStateChangeReason) String() string
String returns the string representation
type ListAssociatedFleetsInput ¶
type ListAssociatedFleetsInput struct { // The pagination token to use to retrieve the next page of results for this // operation. If this value is null, it retrieves the first page. NextToken *string `min:"1" type:"string"` // The name of the stack whose associated fleets are listed. // // StackName is a required field StackName *string `min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
func (ListAssociatedFleetsInput) GoString ¶
func (s ListAssociatedFleetsInput) GoString() string
GoString returns the string representation
func (*ListAssociatedFleetsInput) SetNextToken ¶
func (s *ListAssociatedFleetsInput) SetNextToken(v string) *ListAssociatedFleetsInput
SetNextToken sets the NextToken field's value.
func (*ListAssociatedFleetsInput) SetStackName ¶
func (s *ListAssociatedFleetsInput) SetStackName(v string) *ListAssociatedFleetsInput
SetStackName sets the StackName field's value.
func (ListAssociatedFleetsInput) String ¶
func (s ListAssociatedFleetsInput) String() string
String returns the string representation
func (*ListAssociatedFleetsInput) Validate ¶
func (s *ListAssociatedFleetsInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ListAssociatedFleetsOutput ¶
type ListAssociatedFleetsOutput struct { // The names of associated fleets. Names []*string `type:"list"` // The pagination token to use to retrieve the next page of results for this // operation. If there are no more pages, this value is null. NextToken *string `min:"1" type:"string"` // contains filtered or unexported fields }
The response from a successful operation.
func (ListAssociatedFleetsOutput) GoString ¶
func (s ListAssociatedFleetsOutput) GoString() string
GoString returns the string representation
func (*ListAssociatedFleetsOutput) SetNames ¶
func (s *ListAssociatedFleetsOutput) SetNames(v []*string) *ListAssociatedFleetsOutput
SetNames sets the Names field's value.
func (*ListAssociatedFleetsOutput) SetNextToken ¶
func (s *ListAssociatedFleetsOutput) SetNextToken(v string) *ListAssociatedFleetsOutput
SetNextToken sets the NextToken field's value.
func (ListAssociatedFleetsOutput) String ¶
func (s ListAssociatedFleetsOutput) String() string
String returns the string representation
type ListAssociatedStacksInput ¶
type ListAssociatedStacksInput struct { // The name of the fleet whose associated stacks are listed. // // FleetName is a required field FleetName *string `min:"1" type:"string" required:"true"` // The pagination token to use to retrieve the next page of results for this // operation. If this value is null, it retrieves the first page. NextToken *string `min:"1" type:"string"` // contains filtered or unexported fields }
func (ListAssociatedStacksInput) GoString ¶
func (s ListAssociatedStacksInput) GoString() string
GoString returns the string representation
func (*ListAssociatedStacksInput) SetFleetName ¶
func (s *ListAssociatedStacksInput) SetFleetName(v string) *ListAssociatedStacksInput
SetFleetName sets the FleetName field's value.
func (*ListAssociatedStacksInput) SetNextToken ¶
func (s *ListAssociatedStacksInput) SetNextToken(v string) *ListAssociatedStacksInput
SetNextToken sets the NextToken field's value.
func (ListAssociatedStacksInput) String ¶
func (s ListAssociatedStacksInput) String() string
String returns the string representation
func (*ListAssociatedStacksInput) Validate ¶
func (s *ListAssociatedStacksInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ListAssociatedStacksOutput ¶
type ListAssociatedStacksOutput struct { // The names of associated stacks. Names []*string `type:"list"` // The pagination token to use to retrieve the next page of results for this // operation. If there are no more pages, this value is null. NextToken *string `min:"1" type:"string"` // contains filtered or unexported fields }
The response from a successful operation.
func (ListAssociatedStacksOutput) GoString ¶
func (s ListAssociatedStacksOutput) GoString() string
GoString returns the string representation
func (*ListAssociatedStacksOutput) SetNames ¶
func (s *ListAssociatedStacksOutput) SetNames(v []*string) *ListAssociatedStacksOutput
SetNames sets the Names field's value.
func (*ListAssociatedStacksOutput) SetNextToken ¶
func (s *ListAssociatedStacksOutput) SetNextToken(v string) *ListAssociatedStacksOutput
SetNextToken sets the NextToken field's value.
func (ListAssociatedStacksOutput) String ¶
func (s ListAssociatedStacksOutput) String() string
String returns the string representation
type Session ¶
type Session struct { // The name of the fleet for which the streaming session was created. // // FleetName is a required field FleetName *string `min:"1" type:"string" required:"true"` // The unique ID for a streaming session. // // Id is a required field Id *string `min:"1" type:"string" required:"true"` // The name of the stack for which the streaming session was created. // // StackName is a required field StackName *string `min:"1" type:"string" required:"true"` // The current state of the streaming session. // // State is a required field State *string `type:"string" required:"true" enum:"SessionState"` // The identifier of the user for whom the session was created. // // UserId is a required field UserId *string `min:"2" type:"string" required:"true"` // contains filtered or unexported fields }
Contains the parameters for a streaming session.
func (*Session) SetFleetName ¶
SetFleetName sets the FleetName field's value.
func (*Session) SetStackName ¶
SetStackName sets the StackName field's value.
type Stack ¶
type Stack struct { // The ARN of the stack. Arn *string `type:"string"` // The timestamp when the stack was created. CreatedTime *time.Time `type:"timestamp" timestampFormat:"unix"` // A meaningful description for the stack. Description *string `min:"1" type:"string"` // A display name for the stack. DisplayName *string `min:"1" type:"string"` // The unique identifier of the stack. // // Name is a required field Name *string `min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
Details about a stack.
func (*Stack) SetCreatedTime ¶
SetCreatedTime sets the CreatedTime field's value.
func (*Stack) SetDescription ¶
SetDescription sets the Description field's value.
func (*Stack) SetDisplayName ¶
SetDisplayName sets the DisplayName field's value.
type StartFleetInput ¶
type StartFleetInput struct { // The name of the fleet to start. // // Name is a required field Name *string `min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
func (StartFleetInput) GoString ¶
func (s StartFleetInput) GoString() string
GoString returns the string representation
func (*StartFleetInput) SetName ¶
func (s *StartFleetInput) SetName(v string) *StartFleetInput
SetName sets the Name field's value.
func (StartFleetInput) String ¶
func (s StartFleetInput) String() string
String returns the string representation
func (*StartFleetInput) Validate ¶
func (s *StartFleetInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type StartFleetOutput ¶
type StartFleetOutput struct {
// contains filtered or unexported fields
}
func (StartFleetOutput) GoString ¶
func (s StartFleetOutput) GoString() string
GoString returns the string representation
func (StartFleetOutput) String ¶
func (s StartFleetOutput) String() string
String returns the string representation
type StopFleetInput ¶
type StopFleetInput struct { // The name of the fleet to stop. // // Name is a required field Name *string `min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
func (StopFleetInput) GoString ¶
func (s StopFleetInput) GoString() string
GoString returns the string representation
func (*StopFleetInput) SetName ¶
func (s *StopFleetInput) SetName(v string) *StopFleetInput
SetName sets the Name field's value.
func (StopFleetInput) String ¶
func (s StopFleetInput) String() string
String returns the string representation
func (*StopFleetInput) Validate ¶
func (s *StopFleetInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type StopFleetOutput ¶
type StopFleetOutput struct {
// contains filtered or unexported fields
}
func (StopFleetOutput) GoString ¶
func (s StopFleetOutput) GoString() string
GoString returns the string representation
func (StopFleetOutput) String ¶
func (s StopFleetOutput) String() string
String returns the string representation
type UpdateFleetInput ¶
type UpdateFleetInput struct { // The parameters for the capacity allocated to the fleet. ComputeCapacity *ComputeCapacity `type:"structure"` // Delete the VPC association for the specified fleet. DeleteVpcConfig *bool `type:"boolean"` // The description displayed to end users on the AppStream 2.0 portal. Description *string `type:"string"` // The time after disconnection when a session is considered to have ended. // When the user reconnects after a disconnection, the user is connected to // the same instance within this time interval. DisconnectTimeoutInSeconds *int64 `type:"integer"` // The name displayed to end users on the AppStream 2.0 portal. DisplayName *string `type:"string"` // The image name from which a fleet is created. ImageName *string `min:"1" type:"string"` // The instance type of compute resources for the fleet. Fleet instances are // launched from this instance type. InstanceType *string `min:"1" type:"string"` // The maximum time during which a streaming session can run. MaxUserDurationInSeconds *int64 `type:"integer"` // The name of the fleet. // // Name is a required field Name *string `min:"1" type:"string" required:"true"` // The VPC configuration for the fleet. VpcConfig *VpcConfig `type:"structure"` // contains filtered or unexported fields }
func (UpdateFleetInput) GoString ¶
func (s UpdateFleetInput) GoString() string
GoString returns the string representation
func (*UpdateFleetInput) SetComputeCapacity ¶
func (s *UpdateFleetInput) SetComputeCapacity(v *ComputeCapacity) *UpdateFleetInput
SetComputeCapacity sets the ComputeCapacity field's value.
func (*UpdateFleetInput) SetDeleteVpcConfig ¶
func (s *UpdateFleetInput) SetDeleteVpcConfig(v bool) *UpdateFleetInput
SetDeleteVpcConfig sets the DeleteVpcConfig field's value.
func (*UpdateFleetInput) SetDescription ¶
func (s *UpdateFleetInput) SetDescription(v string) *UpdateFleetInput
SetDescription sets the Description field's value.
func (*UpdateFleetInput) SetDisconnectTimeoutInSeconds ¶
func (s *UpdateFleetInput) SetDisconnectTimeoutInSeconds(v int64) *UpdateFleetInput
SetDisconnectTimeoutInSeconds sets the DisconnectTimeoutInSeconds field's value.
func (*UpdateFleetInput) SetDisplayName ¶
func (s *UpdateFleetInput) SetDisplayName(v string) *UpdateFleetInput
SetDisplayName sets the DisplayName field's value.
func (*UpdateFleetInput) SetImageName ¶
func (s *UpdateFleetInput) SetImageName(v string) *UpdateFleetInput
SetImageName sets the ImageName field's value.
func (*UpdateFleetInput) SetInstanceType ¶
func (s *UpdateFleetInput) SetInstanceType(v string) *UpdateFleetInput
SetInstanceType sets the InstanceType field's value.
func (*UpdateFleetInput) SetMaxUserDurationInSeconds ¶
func (s *UpdateFleetInput) SetMaxUserDurationInSeconds(v int64) *UpdateFleetInput
SetMaxUserDurationInSeconds sets the MaxUserDurationInSeconds field's value.
func (*UpdateFleetInput) SetName ¶
func (s *UpdateFleetInput) SetName(v string) *UpdateFleetInput
SetName sets the Name field's value.
func (*UpdateFleetInput) SetVpcConfig ¶
func (s *UpdateFleetInput) SetVpcConfig(v *VpcConfig) *UpdateFleetInput
SetVpcConfig sets the VpcConfig field's value.
func (UpdateFleetInput) String ¶
func (s UpdateFleetInput) String() string
String returns the string representation
func (*UpdateFleetInput) Validate ¶
func (s *UpdateFleetInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type UpdateFleetOutput ¶
type UpdateFleetOutput struct { // A list of fleet details. Fleet *Fleet `type:"structure"` // contains filtered or unexported fields }
func (UpdateFleetOutput) GoString ¶
func (s UpdateFleetOutput) GoString() string
GoString returns the string representation
func (*UpdateFleetOutput) SetFleet ¶
func (s *UpdateFleetOutput) SetFleet(v *Fleet) *UpdateFleetOutput
SetFleet sets the Fleet field's value.
func (UpdateFleetOutput) String ¶
func (s UpdateFleetOutput) String() string
String returns the string representation
type UpdateStackInput ¶
type UpdateStackInput struct { // The description displayed to end users on the AppStream 2.0 portal. Description *string `type:"string"` // The name displayed to end users on the AppStream 2.0 portal. DisplayName *string `type:"string"` // The name of the stack to update. // // Name is a required field Name *string `min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
func (UpdateStackInput) GoString ¶
func (s UpdateStackInput) GoString() string
GoString returns the string representation
func (*UpdateStackInput) SetDescription ¶
func (s *UpdateStackInput) SetDescription(v string) *UpdateStackInput
SetDescription sets the Description field's value.
func (*UpdateStackInput) SetDisplayName ¶
func (s *UpdateStackInput) SetDisplayName(v string) *UpdateStackInput
SetDisplayName sets the DisplayName field's value.
func (*UpdateStackInput) SetName ¶
func (s *UpdateStackInput) SetName(v string) *UpdateStackInput
SetName sets the Name field's value.
func (UpdateStackInput) String ¶
func (s UpdateStackInput) String() string
String returns the string representation
func (*UpdateStackInput) Validate ¶
func (s *UpdateStackInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type UpdateStackOutput ¶
type UpdateStackOutput struct { // A list of stack details. Stack *Stack `type:"structure"` // contains filtered or unexported fields }
func (UpdateStackOutput) GoString ¶
func (s UpdateStackOutput) GoString() string
GoString returns the string representation
func (*UpdateStackOutput) SetStack ¶
func (s *UpdateStackOutput) SetStack(v *Stack) *UpdateStackOutput
SetStack sets the Stack field's value.
func (UpdateStackOutput) String ¶
func (s UpdateStackOutput) String() string
String returns the string representation
type VpcConfig ¶
type VpcConfig struct { // The list of subnets to which a network interface is established from the // fleet instance. // // SubnetIds is a required field SubnetIds []*string `min:"1" type:"list" required:"true"` // contains filtered or unexported fields }
The VPC in which the fleet is launched.
func (*VpcConfig) SetSubnetIds ¶
SetSubnetIds sets the SubnetIds field's value.
Directories ¶
Path | Synopsis |
---|---|
Package appstreamiface provides an interface to enable mocking the Amazon AppStream service client for testing your code.
|
Package appstreamiface provides an interface to enable mocking the Amazon AppStream service client for testing your code. |