Documentation ¶
Overview ¶
Package snowdevicemanagement provides the API client, operations, and parameter types for AWS Snow Device Management.
Amazon Web Services Snow Device Management documentation.
Index ¶
- Constants
- func NewDefaultEndpointResolver() *internalendpoints.Resolver
- func WithAPIOptions(optFns ...func(*middleware.Stack) error) func(*Options)
- func WithEndpointResolver(v EndpointResolver) func(*Options)deprecated
- func WithEndpointResolverV2(v EndpointResolverV2) func(*Options)
- func WithSigV4SigningName(name string) func(*Options)
- func WithSigV4SigningRegion(region string) func(*Options)
- type AuthResolverParameters
- type AuthSchemeResolver
- type CancelTaskInput
- type CancelTaskOutput
- type Client
- func (c *Client) CancelTask(ctx context.Context, params *CancelTaskInput, optFns ...func(*Options)) (*CancelTaskOutput, error)
- func (c *Client) CreateTask(ctx context.Context, params *CreateTaskInput, optFns ...func(*Options)) (*CreateTaskOutput, error)
- func (c *Client) DescribeDevice(ctx context.Context, params *DescribeDeviceInput, optFns ...func(*Options)) (*DescribeDeviceOutput, error)
- func (c *Client) DescribeDeviceEc2Instances(ctx context.Context, params *DescribeDeviceEc2InstancesInput, ...) (*DescribeDeviceEc2InstancesOutput, error)
- func (c *Client) DescribeExecution(ctx context.Context, params *DescribeExecutionInput, optFns ...func(*Options)) (*DescribeExecutionOutput, error)
- func (c *Client) DescribeTask(ctx context.Context, params *DescribeTaskInput, optFns ...func(*Options)) (*DescribeTaskOutput, error)
- func (c *Client) ListDeviceResources(ctx context.Context, params *ListDeviceResourcesInput, ...) (*ListDeviceResourcesOutput, error)
- func (c *Client) ListDevices(ctx context.Context, params *ListDevicesInput, optFns ...func(*Options)) (*ListDevicesOutput, error)
- func (c *Client) ListExecutions(ctx context.Context, params *ListExecutionsInput, optFns ...func(*Options)) (*ListExecutionsOutput, error)
- func (c *Client) ListTagsForResource(ctx context.Context, params *ListTagsForResourceInput, ...) (*ListTagsForResourceOutput, error)
- func (c *Client) ListTasks(ctx context.Context, params *ListTasksInput, optFns ...func(*Options)) (*ListTasksOutput, error)
- func (c *Client) Options() Options
- func (c *Client) TagResource(ctx context.Context, params *TagResourceInput, optFns ...func(*Options)) (*TagResourceOutput, error)
- func (c *Client) UntagResource(ctx context.Context, params *UntagResourceInput, optFns ...func(*Options)) (*UntagResourceOutput, error)
- type CreateTaskInput
- type CreateTaskOutput
- type DescribeDeviceEc2InstancesInput
- type DescribeDeviceEc2InstancesOutput
- type DescribeDeviceInput
- type DescribeDeviceOutput
- type DescribeExecutionInput
- type DescribeExecutionOutput
- type DescribeTaskInput
- type DescribeTaskOutput
- type EndpointParameters
- type EndpointResolver
- type EndpointResolverFunc
- type EndpointResolverOptions
- type EndpointResolverV2
- type HTTPClient
- type HTTPSignerV4
- type IdempotencyTokenProvider
- type ListDeviceResourcesAPIClient
- type ListDeviceResourcesInput
- type ListDeviceResourcesOutput
- type ListDeviceResourcesPaginator
- type ListDeviceResourcesPaginatorOptions
- type ListDevicesAPIClient
- type ListDevicesInput
- type ListDevicesOutput
- type ListDevicesPaginator
- type ListDevicesPaginatorOptions
- type ListExecutionsAPIClient
- type ListExecutionsInput
- type ListExecutionsOutput
- type ListExecutionsPaginator
- type ListExecutionsPaginatorOptions
- type ListTagsForResourceInput
- type ListTagsForResourceOutput
- type ListTasksAPIClient
- type ListTasksInput
- type ListTasksOutput
- type ListTasksPaginator
- type ListTasksPaginatorOptions
- type Options
- type ResolveEndpoint
- type TagResourceInput
- type TagResourceOutput
- type UntagResourceInput
- type UntagResourceOutput
Constants ¶
const ServiceAPIVersion = "2021-08-04"
const ServiceID = "Snow Device Management"
Variables ¶
This section is empty.
Functions ¶
func NewDefaultEndpointResolver ¶
func NewDefaultEndpointResolver() *internalendpoints.Resolver
NewDefaultEndpointResolver constructs a new service endpoint resolver
func WithAPIOptions ¶
func WithAPIOptions(optFns ...func(*middleware.Stack) error) func(*Options)
WithAPIOptions returns a functional option for setting the Client's APIOptions option.
func WithEndpointResolver
deprecated
func WithEndpointResolver(v EndpointResolver) func(*Options)
Deprecated: EndpointResolver and WithEndpointResolver. Providing a value for this field will likely prevent you from using any endpoint-related service features released after the introduction of EndpointResolverV2 and BaseEndpoint.
To migrate an EndpointResolver implementation that uses a custom endpoint, set the client option BaseEndpoint instead.
func WithEndpointResolverV2 ¶ added in v1.10.0
func WithEndpointResolverV2(v EndpointResolverV2) func(*Options)
WithEndpointResolverV2 returns a functional option for setting the Client's EndpointResolverV2 option.
func WithSigV4SigningName ¶ added in v1.13.2
WithSigV4SigningName applies an override to the authentication workflow to use the given signing name for SigV4-authenticated operations.
This is an advanced setting. The value here is FINAL, taking precedence over the resolved signing name from both auth scheme resolution and endpoint resolution.
func WithSigV4SigningRegion ¶ added in v1.13.2
WithSigV4SigningRegion applies an override to the authentication workflow to use the given signing region for SigV4-authenticated operations.
This is an advanced setting. The value here is FINAL, taking precedence over the resolved signing region from both auth scheme resolution and endpoint resolution.
Types ¶
type AuthResolverParameters ¶ added in v1.13.2
type AuthResolverParameters struct { // The name of the operation being invoked. Operation string // The region in which the operation is being invoked. Region string }
AuthResolverParameters contains the set of inputs necessary for auth scheme resolution.
type AuthSchemeResolver ¶ added in v1.13.2
type AuthSchemeResolver interface {
ResolveAuthSchemes(context.Context, *AuthResolverParameters) ([]*smithyauth.Option, error)
}
AuthSchemeResolver returns a set of possible authentication options for an operation.
type CancelTaskInput ¶
type CancelTaskInput struct { // The ID of the task that you are attempting to cancel. You can retrieve a task // ID by using the ListTasks operation. // // This member is required. TaskId *string // contains filtered or unexported fields }
type CancelTaskOutput ¶
type CancelTaskOutput struct { // The ID of the task that you are attempting to cancel. TaskId *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client provides the API client to make operations call for AWS Snow Device Management.
func New ¶
New returns an initialized Client based on the functional options. Provide additional functional options to further configure the behavior of the client, such as changing the client's endpoint or adding custom middleware behavior.
func NewFromConfig ¶
NewFromConfig returns a new client from the provided config.
func (*Client) CancelTask ¶
func (c *Client) CancelTask(ctx context.Context, params *CancelTaskInput, optFns ...func(*Options)) (*CancelTaskOutput, error)
Sends a cancel request for a specified task. You can cancel a task only if it's still in a QUEUED state. Tasks that are already running can't be cancelled.
A task might still run if it's processed from the queue before the CancelTask operation changes the task's state.
func (*Client) CreateTask ¶
func (c *Client) CreateTask(ctx context.Context, params *CreateTaskInput, optFns ...func(*Options)) (*CreateTaskOutput, error)
Instructs one or more devices to start a task, such as unlocking or rebooting.
func (*Client) DescribeDevice ¶
func (c *Client) DescribeDevice(ctx context.Context, params *DescribeDeviceInput, optFns ...func(*Options)) (*DescribeDeviceOutput, error)
Checks device-specific information, such as the device type, software version, IP addresses, and lock status.
func (*Client) DescribeDeviceEc2Instances ¶
func (c *Client) DescribeDeviceEc2Instances(ctx context.Context, params *DescribeDeviceEc2InstancesInput, optFns ...func(*Options)) (*DescribeDeviceEc2InstancesOutput, error)
Checks the current state of the Amazon EC2 instances. The output is similar to describeDevice , but the results are sourced from the device cache in the Amazon Web Services Cloud and include a subset of the available fields.
func (*Client) DescribeExecution ¶
func (c *Client) DescribeExecution(ctx context.Context, params *DescribeExecutionInput, optFns ...func(*Options)) (*DescribeExecutionOutput, error)
Checks the status of a remote task running on one or more target devices.
func (*Client) DescribeTask ¶
func (c *Client) DescribeTask(ctx context.Context, params *DescribeTaskInput, optFns ...func(*Options)) (*DescribeTaskOutput, error)
Checks the metadata for a given task on a device.
func (*Client) ListDeviceResources ¶
func (c *Client) ListDeviceResources(ctx context.Context, params *ListDeviceResourcesInput, optFns ...func(*Options)) (*ListDeviceResourcesOutput, error)
Returns a list of the Amazon Web Services resources available for a device. Currently, Amazon EC2 instances are the only supported resource type.
func (*Client) ListDevices ¶
func (c *Client) ListDevices(ctx context.Context, params *ListDevicesInput, optFns ...func(*Options)) (*ListDevicesOutput, error)
Returns a list of all devices on your Amazon Web Services account that have Amazon Web Services Snow Device Management enabled in the Amazon Web Services Region where the command is run.
func (*Client) ListExecutions ¶
func (c *Client) ListExecutions(ctx context.Context, params *ListExecutionsInput, optFns ...func(*Options)) (*ListExecutionsOutput, error)
Returns the status of tasks for one or more target devices.
func (*Client) ListTagsForResource ¶
func (c *Client) ListTagsForResource(ctx context.Context, params *ListTagsForResourceInput, optFns ...func(*Options)) (*ListTagsForResourceOutput, error)
Returns a list of tags for a managed device or task.
func (*Client) ListTasks ¶
func (c *Client) ListTasks(ctx context.Context, params *ListTasksInput, optFns ...func(*Options)) (*ListTasksOutput, error)
Returns a list of tasks that can be filtered by state.
func (*Client) Options ¶ added in v1.14.0
Options returns a copy of the client configuration.
Callers SHOULD NOT perform mutations on any inner structures within client config. Config overrides should instead be made on a per-operation basis through functional options.
func (*Client) TagResource ¶
func (c *Client) TagResource(ctx context.Context, params *TagResourceInput, optFns ...func(*Options)) (*TagResourceOutput, error)
Adds or replaces tags on a device or task.
func (*Client) UntagResource ¶
func (c *Client) UntagResource(ctx context.Context, params *UntagResourceInput, optFns ...func(*Options)) (*UntagResourceOutput, error)
Removes a tag from a device or task.
type CreateTaskInput ¶
type CreateTaskInput struct { // The task to be performed. Only one task is executed on a device at a time. // // This member is required. Command types.Command // A list of managed device IDs. // // This member is required. Targets []string // A token ensuring that the action is called only once with the specified details. ClientToken *string // A description of the task and its targets. Description *string // Optional metadata that you assign to a resource. You can use tags to categorize // a resource in different ways, such as by purpose, owner, or environment. Tags map[string]string // contains filtered or unexported fields }
type CreateTaskOutput ¶
type CreateTaskOutput struct { // The Amazon Resource Name (ARN) of the task that you created. TaskArn *string // The ID of the task that you created. TaskId *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DescribeDeviceEc2InstancesOutput ¶
type DescribeDeviceEc2InstancesOutput struct { // A list of structures containing information about each instance. Instances []types.InstanceSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DescribeDeviceInput ¶
type DescribeDeviceInput struct { // The ID of the device that you are checking the information of. // // This member is required. ManagedDeviceId *string // contains filtered or unexported fields }
type DescribeDeviceOutput ¶
type DescribeDeviceOutput struct { // The ID of the job used when ordering the device. AssociatedWithJob *string // The hardware specifications of the device. DeviceCapacities []types.Capacity // The current state of the device. DeviceState types.UnlockState // The type of Amazon Web Services Snow Family device. DeviceType *string // When the device last contacted the Amazon Web Services Cloud. Indicates that // the device is online. LastReachedOutAt *time.Time // When the device last pushed an update to the Amazon Web Services Cloud. // Indicates when the device cache was refreshed. LastUpdatedAt *time.Time // The Amazon Resource Name (ARN) of the device. ManagedDeviceArn *string // The ID of the device that you checked the information for. ManagedDeviceId *string // The network interfaces available on the device. PhysicalNetworkInterfaces []types.PhysicalNetworkInterface // The software installed on the device. Software *types.SoftwareInformation // Optional metadata that you assign to a resource. You can use tags to categorize // a resource in different ways, such as by purpose, owner, or environment. Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DescribeExecutionInput ¶
type DescribeExecutionOutput ¶
type DescribeExecutionOutput struct { // The ID of the execution. ExecutionId *string // When the status of the execution was last updated. LastUpdatedAt *time.Time // The ID of the managed device that the task is being executed on. ManagedDeviceId *string // When the execution began. StartedAt *time.Time // The current state of the execution. State types.ExecutionState // The ID of the task being executed on the device. TaskId *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DescribeTaskInput ¶
type DescribeTaskInput struct { // The ID of the task to be described. // // This member is required. TaskId *string // contains filtered or unexported fields }
type DescribeTaskOutput ¶
type DescribeTaskOutput struct { // When the task was completed. CompletedAt *time.Time // When the CreateTask operation was called. CreatedAt *time.Time // The description provided of the task and managed devices. Description *string // When the state of the task was last updated. LastUpdatedAt *time.Time // The current state of the task. State types.TaskState // Optional metadata that you assign to a resource. You can use tags to categorize // a resource in different ways, such as by purpose, owner, or environment. Tags map[string]string // The managed devices that the task was sent to. Targets []string // The Amazon Resource Name (ARN) of the task. TaskArn *string // The ID of the task. TaskId *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type EndpointParameters ¶ added in v1.10.0
type EndpointParameters struct { // The AWS region used to dispatch the request. // // Parameter is // required. // // AWS::Region Region *string // When true, use the dual-stack endpoint. If the configured endpoint does not // support dual-stack, dispatching the request MAY return an error. // // Defaults to // false if no value is provided. // // AWS::UseDualStack UseDualStack *bool // When true, send this request to the FIPS-compliant regional endpoint. If the // configured endpoint does not have a FIPS compliant endpoint, dispatching the // request will return an error. // // Defaults to false if no value is // provided. // // AWS::UseFIPS UseFIPS *bool // Override the endpoint used to send this request // // Parameter is // required. // // SDK::Endpoint Endpoint *string }
EndpointParameters provides the parameters that influence how endpoints are resolved.
func (EndpointParameters) ValidateRequired ¶ added in v1.10.0
func (p EndpointParameters) ValidateRequired() error
ValidateRequired validates required parameters are set.
func (EndpointParameters) WithDefaults ¶ added in v1.10.0
func (p EndpointParameters) WithDefaults() EndpointParameters
WithDefaults returns a shallow copy of EndpointParameterswith default values applied to members where applicable.
type EndpointResolver ¶
type EndpointResolver interface {
ResolveEndpoint(region string, options EndpointResolverOptions) (aws.Endpoint, error)
}
EndpointResolver interface for resolving service endpoints.
func EndpointResolverFromURL ¶
func EndpointResolverFromURL(url string, optFns ...func(*aws.Endpoint)) EndpointResolver
EndpointResolverFromURL returns an EndpointResolver configured using the provided endpoint url. By default, the resolved endpoint resolver uses the client region as signing region, and the endpoint source is set to EndpointSourceCustom.You can provide functional options to configure endpoint values for the resolved endpoint.
type EndpointResolverFunc ¶
type EndpointResolverFunc func(region string, options EndpointResolverOptions) (aws.Endpoint, error)
EndpointResolverFunc is a helper utility that wraps a function so it satisfies the EndpointResolver interface. This is useful when you want to add additional endpoint resolving logic, or stub out specific endpoints with custom values.
func (EndpointResolverFunc) ResolveEndpoint ¶
func (fn EndpointResolverFunc) ResolveEndpoint(region string, options EndpointResolverOptions) (endpoint aws.Endpoint, err error)
type EndpointResolverOptions ¶
type EndpointResolverOptions = internalendpoints.Options
EndpointResolverOptions is the service endpoint resolver options
type EndpointResolverV2 ¶ added in v1.10.0
type EndpointResolverV2 interface { // ResolveEndpoint attempts to resolve the endpoint with the provided options, // returning the endpoint if found. Otherwise an error is returned. ResolveEndpoint(ctx context.Context, params EndpointParameters) ( smithyendpoints.Endpoint, error, ) }
EndpointResolverV2 provides the interface for resolving service endpoints.
func NewDefaultEndpointResolverV2 ¶ added in v1.10.0
func NewDefaultEndpointResolverV2() EndpointResolverV2
type HTTPSignerV4 ¶
type IdempotencyTokenProvider ¶ added in v1.3.3
IdempotencyTokenProvider interface for providing idempotency token
type ListDeviceResourcesAPIClient ¶
type ListDeviceResourcesAPIClient interface {
ListDeviceResources(context.Context, *ListDeviceResourcesInput, ...func(*Options)) (*ListDeviceResourcesOutput, error)
}
ListDeviceResourcesAPIClient is a client that implements the ListDeviceResources operation.
type ListDeviceResourcesInput ¶
type ListDeviceResourcesInput struct { // The ID of the managed device that you are listing the resources of. // // This member is required. ManagedDeviceId *string // The maximum number of resources per page. MaxResults *int32 // A pagination token to continue to the next page of results. NextToken *string // A structure used to filter the results by type of resource. Type *string // contains filtered or unexported fields }
type ListDeviceResourcesOutput ¶
type ListDeviceResourcesOutput struct { // A pagination token to continue to the next page of results. NextToken *string // A structure defining the resource's type, Amazon Resource Name (ARN), and ID. Resources []types.ResourceSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type ListDeviceResourcesPaginator ¶
type ListDeviceResourcesPaginator struct {
// contains filtered or unexported fields
}
ListDeviceResourcesPaginator is a paginator for ListDeviceResources
func NewListDeviceResourcesPaginator ¶
func NewListDeviceResourcesPaginator(client ListDeviceResourcesAPIClient, params *ListDeviceResourcesInput, optFns ...func(*ListDeviceResourcesPaginatorOptions)) *ListDeviceResourcesPaginator
NewListDeviceResourcesPaginator returns a new ListDeviceResourcesPaginator
func (*ListDeviceResourcesPaginator) HasMorePages ¶
func (p *ListDeviceResourcesPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*ListDeviceResourcesPaginator) NextPage ¶
func (p *ListDeviceResourcesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListDeviceResourcesOutput, error)
NextPage retrieves the next ListDeviceResources page.
type ListDeviceResourcesPaginatorOptions ¶
type ListDeviceResourcesPaginatorOptions struct { // The maximum number of resources per page. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
ListDeviceResourcesPaginatorOptions is the paginator options for ListDeviceResources
type ListDevicesAPIClient ¶
type ListDevicesAPIClient interface {
ListDevices(context.Context, *ListDevicesInput, ...func(*Options)) (*ListDevicesOutput, error)
}
ListDevicesAPIClient is a client that implements the ListDevices operation.
type ListDevicesInput ¶
type ListDevicesOutput ¶
type ListDevicesOutput struct { // A list of device structures that contain information about the device. Devices []types.DeviceSummary // A pagination token to continue to the next page of devices. NextToken *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type ListDevicesPaginator ¶
type ListDevicesPaginator struct {
// contains filtered or unexported fields
}
ListDevicesPaginator is a paginator for ListDevices
func NewListDevicesPaginator ¶
func NewListDevicesPaginator(client ListDevicesAPIClient, params *ListDevicesInput, optFns ...func(*ListDevicesPaginatorOptions)) *ListDevicesPaginator
NewListDevicesPaginator returns a new ListDevicesPaginator
func (*ListDevicesPaginator) HasMorePages ¶
func (p *ListDevicesPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*ListDevicesPaginator) NextPage ¶
func (p *ListDevicesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListDevicesOutput, error)
NextPage retrieves the next ListDevices page.
type ListDevicesPaginatorOptions ¶
type ListDevicesPaginatorOptions struct { // The maximum number of devices to list per page. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
ListDevicesPaginatorOptions is the paginator options for ListDevices
type ListExecutionsAPIClient ¶
type ListExecutionsAPIClient interface {
ListExecutions(context.Context, *ListExecutionsInput, ...func(*Options)) (*ListExecutionsOutput, error)
}
ListExecutionsAPIClient is a client that implements the ListExecutions operation.
type ListExecutionsInput ¶
type ListExecutionsInput struct { // The ID of the task. // // This member is required. TaskId *string // The maximum number of tasks to list per page. MaxResults *int32 // A pagination token to continue to the next page of tasks. NextToken *string // A structure used to filter the tasks by their current state. State types.ExecutionState // contains filtered or unexported fields }
type ListExecutionsOutput ¶
type ListExecutionsOutput struct { // A list of executions. Each execution contains the task ID, the device that the // task is executing on, the execution ID, and the status of the execution. Executions []types.ExecutionSummary // A pagination token to continue to the next page of executions. NextToken *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type ListExecutionsPaginator ¶
type ListExecutionsPaginator struct {
// contains filtered or unexported fields
}
ListExecutionsPaginator is a paginator for ListExecutions
func NewListExecutionsPaginator ¶
func NewListExecutionsPaginator(client ListExecutionsAPIClient, params *ListExecutionsInput, optFns ...func(*ListExecutionsPaginatorOptions)) *ListExecutionsPaginator
NewListExecutionsPaginator returns a new ListExecutionsPaginator
func (*ListExecutionsPaginator) HasMorePages ¶
func (p *ListExecutionsPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*ListExecutionsPaginator) NextPage ¶
func (p *ListExecutionsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListExecutionsOutput, error)
NextPage retrieves the next ListExecutions page.
type ListExecutionsPaginatorOptions ¶
type ListExecutionsPaginatorOptions struct { // The maximum number of tasks to list per page. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
ListExecutionsPaginatorOptions is the paginator options for ListExecutions
type ListTagsForResourceInput ¶
type ListTagsForResourceInput struct { // The Amazon Resource Name (ARN) of the device or task. // // This member is required. ResourceArn *string // contains filtered or unexported fields }
type ListTagsForResourceOutput ¶
type ListTagsForResourceOutput struct { // The list of tags for the device or task. Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type ListTasksAPIClient ¶
type ListTasksAPIClient interface {
ListTasks(context.Context, *ListTasksInput, ...func(*Options)) (*ListTasksOutput, error)
}
ListTasksAPIClient is a client that implements the ListTasks operation.
type ListTasksInput ¶
type ListTasksOutput ¶
type ListTasksOutput struct { // A pagination token to continue to the next page of tasks. NextToken *string // A list of task structures containing details about each task. Tasks []types.TaskSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type ListTasksPaginator ¶
type ListTasksPaginator struct {
// contains filtered or unexported fields
}
ListTasksPaginator is a paginator for ListTasks
func NewListTasksPaginator ¶
func NewListTasksPaginator(client ListTasksAPIClient, params *ListTasksInput, optFns ...func(*ListTasksPaginatorOptions)) *ListTasksPaginator
NewListTasksPaginator returns a new ListTasksPaginator
func (*ListTasksPaginator) HasMorePages ¶
func (p *ListTasksPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*ListTasksPaginator) NextPage ¶
func (p *ListTasksPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListTasksOutput, error)
NextPage retrieves the next ListTasks page.
type ListTasksPaginatorOptions ¶
type ListTasksPaginatorOptions struct { // The maximum number of tasks per page. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
ListTasksPaginatorOptions is the paginator options for ListTasks
type Options ¶
type Options struct { // Set of options to modify how an operation is invoked. These apply to all // operations invoked for this client. Use functional options on operation call to // modify this list for per operation behavior. APIOptions []func(*middleware.Stack) error // The optional application specific identifier appended to the User-Agent header. AppID string // This endpoint will be given as input to an EndpointResolverV2. It is used for // providing a custom base endpoint that is subject to modifications by the // processing EndpointResolverV2. BaseEndpoint *string // Configures the events that will be sent to the configured logger. ClientLogMode aws.ClientLogMode // The credentials object to use when signing requests. Credentials aws.CredentialsProvider // The configuration DefaultsMode that the SDK should use when constructing the // clients initial default settings. DefaultsMode aws.DefaultsMode // The endpoint options to be used when attempting to resolve an endpoint. EndpointOptions EndpointResolverOptions // The service endpoint resolver. // // Deprecated: Deprecated: EndpointResolver and WithEndpointResolver. Providing a // value for this field will likely prevent you from using any endpoint-related // service features released after the introduction of EndpointResolverV2 and // BaseEndpoint. // // To migrate an EndpointResolver implementation that uses a custom endpoint, set // the client option BaseEndpoint instead. EndpointResolver EndpointResolver // Resolves the endpoint used for a particular service operation. This should be // used over the deprecated EndpointResolver. EndpointResolverV2 EndpointResolverV2 // Signature Version 4 (SigV4) Signer HTTPSignerV4 HTTPSignerV4 // Provides idempotency tokens values that will be automatically populated into // idempotent API operations. IdempotencyTokenProvider IdempotencyTokenProvider // The logger writer interface to write logging messages to. Logger logging.Logger // The region to send requests to. (Required) Region string // RetryMaxAttempts specifies the maximum number attempts an API client will call // an operation that fails with a retryable error. A value of 0 is ignored, and // will not be used to configure the API client created default retryer, or modify // per operation call's retry max attempts. // // If specified in an operation call's functional options with a value that is // different than the constructed client's Options, the Client's Retryer will be // wrapped to use the operation's specific RetryMaxAttempts value. RetryMaxAttempts int // RetryMode specifies the retry mode the API client will be created with, if // Retryer option is not also specified. // // When creating a new API Clients this member will only be used if the Retryer // Options member is nil. This value will be ignored if Retryer is not nil. // // Currently does not support per operation call overrides, may in the future. RetryMode aws.RetryMode // Retryer guides how HTTP requests should be retried in case of recoverable // failures. When nil the API client will use a default retryer. The kind of // default retry created by the API client can be changed with the RetryMode // option. Retryer aws.Retryer // The RuntimeEnvironment configuration, only populated if the DefaultsMode is set // to DefaultsModeAuto and is initialized using config.LoadDefaultConfig . You // should not populate this structure programmatically, or rely on the values here // within your applications. RuntimeEnvironment aws.RuntimeEnvironment // The HTTP client to invoke API calls with. Defaults to client's default HTTP // implementation if nil. HTTPClient HTTPClient // The auth scheme resolver which determines how to authenticate for each // operation. AuthSchemeResolver AuthSchemeResolver // The list of auth schemes supported by the client. AuthSchemes []smithyhttp.AuthScheme // contains filtered or unexported fields }
func (Options) GetIdentityResolver ¶ added in v1.13.2
func (o Options) GetIdentityResolver(schemeID string) smithyauth.IdentityResolver
type ResolveEndpoint ¶
type ResolveEndpoint struct { Resolver EndpointResolver Options EndpointResolverOptions }
func (*ResolveEndpoint) HandleSerialize ¶
func (m *ResolveEndpoint) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, )
func (*ResolveEndpoint) ID ¶
func (*ResolveEndpoint) ID() string
type TagResourceInput ¶
type TagResourceInput struct { // The Amazon Resource Name (ARN) of the device or task. // // This member is required. ResourceArn *string // Optional metadata that you assign to a resource. You can use tags to categorize // a resource in different ways, such as by purpose, owner, or environment. // // This member is required. Tags map[string]string // contains filtered or unexported fields }
type TagResourceOutput ¶
type TagResourceOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type UntagResourceInput ¶
type UntagResourceInput struct { // The Amazon Resource Name (ARN) of the device or task. // // This member is required. ResourceArn *string // Optional metadata that you assign to a resource. You can use tags to categorize // a resource in different ways, such as by purpose, owner, or environment. // // This member is required. TagKeys []string // contains filtered or unexported fields }
type UntagResourceOutput ¶
type UntagResourceOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
Source Files ¶
- api_client.go
- api_op_CancelTask.go
- api_op_CreateTask.go
- api_op_DescribeDevice.go
- api_op_DescribeDeviceEc2Instances.go
- api_op_DescribeExecution.go
- api_op_DescribeTask.go
- api_op_ListDeviceResources.go
- api_op_ListDevices.go
- api_op_ListExecutions.go
- api_op_ListTagsForResource.go
- api_op_ListTasks.go
- api_op_TagResource.go
- api_op_UntagResource.go
- auth.go
- deserializers.go
- doc.go
- endpoints.go
- go_module_metadata.go
- options.go
- serializers.go
- validators.go