Documentation ¶
Overview ¶
Package braket provides the API client, operations, and parameter types for Braket.
The Amazon Braket API Reference provides information about the operations and structures supported in Amazon Braket.
Additional Resources:
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 CancelJobInput
- type CancelJobOutput
- type CancelQuantumTaskInput
- type CancelQuantumTaskOutput
- type Client
- func (c *Client) CancelJob(ctx context.Context, params *CancelJobInput, optFns ...func(*Options)) (*CancelJobOutput, error)
- func (c *Client) CancelQuantumTask(ctx context.Context, params *CancelQuantumTaskInput, optFns ...func(*Options)) (*CancelQuantumTaskOutput, error)
- func (c *Client) CreateJob(ctx context.Context, params *CreateJobInput, optFns ...func(*Options)) (*CreateJobOutput, error)
- func (c *Client) CreateQuantumTask(ctx context.Context, params *CreateQuantumTaskInput, optFns ...func(*Options)) (*CreateQuantumTaskOutput, error)
- func (c *Client) GetDevice(ctx context.Context, params *GetDeviceInput, optFns ...func(*Options)) (*GetDeviceOutput, error)
- func (c *Client) GetJob(ctx context.Context, params *GetJobInput, optFns ...func(*Options)) (*GetJobOutput, error)
- func (c *Client) GetQuantumTask(ctx context.Context, params *GetQuantumTaskInput, optFns ...func(*Options)) (*GetQuantumTaskOutput, error)
- func (c *Client) ListTagsForResource(ctx context.Context, params *ListTagsForResourceInput, ...) (*ListTagsForResourceOutput, error)
- func (c *Client) Options() Options
- func (c *Client) SearchDevices(ctx context.Context, params *SearchDevicesInput, optFns ...func(*Options)) (*SearchDevicesOutput, error)
- func (c *Client) SearchJobs(ctx context.Context, params *SearchJobsInput, optFns ...func(*Options)) (*SearchJobsOutput, error)
- func (c *Client) SearchQuantumTasks(ctx context.Context, params *SearchQuantumTasksInput, optFns ...func(*Options)) (*SearchQuantumTasksOutput, error)
- 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 CreateJobInput
- type CreateJobOutput
- type CreateQuantumTaskInput
- type CreateQuantumTaskOutput
- type EndpointParameters
- type EndpointResolver
- type EndpointResolverFunc
- type EndpointResolverOptions
- type EndpointResolverV2
- type GetDeviceInput
- type GetDeviceOutput
- type GetJobInput
- type GetJobOutput
- type GetQuantumTaskInput
- type GetQuantumTaskOutput
- type HTTPClient
- type HTTPSignerV4
- type IdempotencyTokenProvider
- type ListTagsForResourceInput
- type ListTagsForResourceOutput
- type Options
- type ResolveEndpoint
- type SearchDevicesAPIClient
- type SearchDevicesInput
- type SearchDevicesOutput
- type SearchDevicesPaginator
- type SearchDevicesPaginatorOptions
- type SearchJobsAPIClient
- type SearchJobsInput
- type SearchJobsOutput
- type SearchJobsPaginator
- type SearchJobsPaginatorOptions
- type SearchQuantumTasksAPIClient
- type SearchQuantumTasksInput
- type SearchQuantumTasksOutput
- type SearchQuantumTasksPaginator
- type SearchQuantumTasksPaginatorOptions
- type TagResourceInput
- type TagResourceOutput
- type UntagResourceInput
- type UntagResourceOutput
Constants ¶
const ServiceAPIVersion = "2019-09-01"
const ServiceID = "Braket"
Variables ¶
This section is empty.
Functions ¶
func NewDefaultEndpointResolver ¶
func NewDefaultEndpointResolver() *internalendpoints.Resolver
NewDefaultEndpointResolver constructs a new service endpoint resolver
func WithAPIOptions ¶ added in v1.0.0
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.18.0
func WithEndpointResolverV2(v EndpointResolverV2) func(*Options)
WithEndpointResolverV2 returns a functional option for setting the Client's EndpointResolverV2 option.
func WithSigV4SigningName ¶ added in v1.22.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.22.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.22.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.22.2
type AuthSchemeResolver interface {
ResolveAuthSchemes(context.Context, *AuthResolverParameters) ([]*smithyauth.Option, error)
}
AuthSchemeResolver returns a set of possible authentication options for an operation.
type CancelJobInput ¶ added in v1.10.0
type CancelJobInput struct { // The ARN of the Amazon Braket job to cancel. // // This member is required. JobArn *string // contains filtered or unexported fields }
type CancelJobOutput ¶ added in v1.10.0
type CancelJobOutput struct { // The status of the job cancellation request. // // This member is required. CancellationStatus types.CancellationStatus // The ARN of the Amazon Braket job. // // This member is required. JobArn *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type CancelQuantumTaskInput ¶
type CancelQuantumTaskOutput ¶
type CancelQuantumTaskOutput struct { // The status of the cancellation request. // // This member is required. CancellationStatus types.CancellationStatus // The ARN of the task. // // This member is required. QuantumTaskArn *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 Braket.
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) CancelJob ¶ added in v1.10.0
func (c *Client) CancelJob(ctx context.Context, params *CancelJobInput, optFns ...func(*Options)) (*CancelJobOutput, error)
Cancels an Amazon Braket job.
func (*Client) CancelQuantumTask ¶
func (c *Client) CancelQuantumTask(ctx context.Context, params *CancelQuantumTaskInput, optFns ...func(*Options)) (*CancelQuantumTaskOutput, error)
Cancels the specified task.
func (*Client) CreateJob ¶ added in v1.10.0
func (c *Client) CreateJob(ctx context.Context, params *CreateJobInput, optFns ...func(*Options)) (*CreateJobOutput, error)
Creates an Amazon Braket job.
func (*Client) CreateQuantumTask ¶
func (c *Client) CreateQuantumTask(ctx context.Context, params *CreateQuantumTaskInput, optFns ...func(*Options)) (*CreateQuantumTaskOutput, error)
Creates a quantum task.
func (*Client) GetDevice ¶
func (c *Client) GetDevice(ctx context.Context, params *GetDeviceInput, optFns ...func(*Options)) (*GetDeviceOutput, error)
Retrieves the devices available in Amazon Braket.
For backwards compatibility with older versions of BraketSchemas, OpenQASM information is omitted from GetDevice API calls. To get this information the user-agent needs to present a recent version of the BraketSchemas (1.8.0 or later). The Braket SDK automatically reports this for you. If you do not see OpenQASM results in the GetDevice response when using a Braket SDK, you may need to set AWS_EXECUTION_ENV environment variable to configure user-agent. See the code examples provided below for how to do this for the AWS CLI, Boto3, and the Go, Java, and JavaScript/TypeScript SDKs.
func (*Client) GetJob ¶ added in v1.10.0
func (c *Client) GetJob(ctx context.Context, params *GetJobInput, optFns ...func(*Options)) (*GetJobOutput, error)
Retrieves the specified Amazon Braket job.
func (*Client) GetQuantumTask ¶
func (c *Client) GetQuantumTask(ctx context.Context, params *GetQuantumTaskInput, optFns ...func(*Options)) (*GetQuantumTaskOutput, error)
Retrieves the specified quantum task.
func (*Client) ListTagsForResource ¶ added in v1.2.0
func (c *Client) ListTagsForResource(ctx context.Context, params *ListTagsForResourceInput, optFns ...func(*Options)) (*ListTagsForResourceOutput, error)
Shows the tags associated with this resource.
func (*Client) Options ¶ added in v1.23.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) SearchDevices ¶
func (c *Client) SearchDevices(ctx context.Context, params *SearchDevicesInput, optFns ...func(*Options)) (*SearchDevicesOutput, error)
Searches for devices using the specified filters.
func (*Client) SearchJobs ¶ added in v1.10.0
func (c *Client) SearchJobs(ctx context.Context, params *SearchJobsInput, optFns ...func(*Options)) (*SearchJobsOutput, error)
Searches for Amazon Braket jobs that match the specified filter values.
func (*Client) SearchQuantumTasks ¶
func (c *Client) SearchQuantumTasks(ctx context.Context, params *SearchQuantumTasksInput, optFns ...func(*Options)) (*SearchQuantumTasksOutput, error)
Searches for tasks that match the specified filter values.
func (*Client) TagResource ¶ added in v1.2.0
func (c *Client) TagResource(ctx context.Context, params *TagResourceInput, optFns ...func(*Options)) (*TagResourceOutput, error)
Add a tag to the specified resource.
func (*Client) UntagResource ¶ added in v1.2.0
func (c *Client) UntagResource(ctx context.Context, params *UntagResourceInput, optFns ...func(*Options)) (*UntagResourceOutput, error)
Remove tags from a resource.
type CreateJobInput ¶ added in v1.10.0
type CreateJobInput struct { // Definition of the Amazon Braket job to be created. Specifies the container // image the job uses and information about the Python scripts used for entry and // training. // // This member is required. AlgorithmSpecification *types.AlgorithmSpecification // A unique token that guarantees that the call to this API is idempotent. // // This member is required. ClientToken *string // The quantum processing unit (QPU) or simulator used to create an Amazon Braket // job. // // This member is required. DeviceConfig *types.DeviceConfig // Configuration of the resource instances to use while running the hybrid job on // Amazon Braket. // // This member is required. InstanceConfig *types.InstanceConfig // The name of the Amazon Braket job. // // This member is required. JobName *string // The path to the S3 location where you want to store job artifacts and the // encryption key used to store them. // // This member is required. OutputDataConfig *types.JobOutputDataConfig // The Amazon Resource Name (ARN) of an IAM role that Amazon Braket can assume to // perform tasks on behalf of a user. It can access user resources, run an Amazon // Braket job container on behalf of user, and output resources to the users' s3 // buckets. // // This member is required. RoleArn *string // The list of Amazon Braket resources associated with the hybrid job. Associations []types.Association // Information about the output locations for job checkpoint data. CheckpointConfig *types.JobCheckpointConfig // Algorithm-specific parameters used by an Amazon Braket job that influence the // quality of the training job. The values are set with a string of JSON key:value // pairs, where the key is the name of the hyperparameter and the value is the // value of th hyperparameter. HyperParameters map[string]string // A list of parameters that specify the name and type of input data and where it // is located. InputDataConfig []types.InputFileConfig // The user-defined criteria that specifies when a job stops running. StoppingCondition *types.JobStoppingCondition // A tag object that consists of a key and an optional value, used to manage // metadata for Amazon Braket resources. Tags map[string]string // contains filtered or unexported fields }
type CreateJobOutput ¶ added in v1.10.0
type CreateJobOutput struct { // The ARN of the Amazon Braket job created. // // This member is required. JobArn *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type CreateQuantumTaskInput ¶
type CreateQuantumTaskInput struct { // The action associated with the task. // // This value conforms to the media type: application/json // // This member is required. Action *string // The client token associated with the request. // // This member is required. ClientToken *string // The ARN of the device to run the task on. // // This member is required. DeviceArn *string // The S3 bucket to store task result files in. // // This member is required. OutputS3Bucket *string // The key prefix for the location in the S3 bucket to store task results in. // // This member is required. OutputS3KeyPrefix *string // The number of shots to use for the task. // // This member is required. Shots *int64 // The list of Amazon Braket resources associated with the quantum task. Associations []types.Association // The parameters for the device to run the task on. // // This value conforms to the media type: application/json DeviceParameters *string // The token for an Amazon Braket job that associates it with the quantum task. JobToken *string // Tags to be added to the quantum task you're creating. Tags map[string]string // contains filtered or unexported fields }
type CreateQuantumTaskOutput ¶
type CreateQuantumTaskOutput struct { // The ARN of the task created by the request. // // This member is required. QuantumTaskArn *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type EndpointParameters ¶ added in v1.18.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.18.0
func (p EndpointParameters) ValidateRequired() error
ValidateRequired validates required parameters are set.
func (EndpointParameters) WithDefaults ¶ added in v1.18.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 ¶ added in v1.1.0
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 ¶ added in v0.29.0
type EndpointResolverOptions = internalendpoints.Options
EndpointResolverOptions is the service endpoint resolver options
type EndpointResolverV2 ¶ added in v1.18.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.18.0
func NewDefaultEndpointResolverV2() EndpointResolverV2
type GetDeviceInput ¶
type GetDeviceInput struct { // The ARN of the device to retrieve. // // This member is required. DeviceArn *string // contains filtered or unexported fields }
type GetDeviceOutput ¶
type GetDeviceOutput struct { // The ARN of the device. // // This member is required. DeviceArn *string // Details about the capabilities of the device. // // This value conforms to the media type: application/json // // This member is required. DeviceCapabilities *string // The name of the device. // // This member is required. DeviceName *string // The status of the device. // // This member is required. DeviceStatus types.DeviceStatus // The type of the device. // // This member is required. DeviceType types.DeviceType // The name of the partner company for the device. // // This member is required. ProviderName *string // List of information about tasks and jobs queued on a device. DeviceQueueInfo []types.DeviceQueueInfo // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type GetJobInput ¶ added in v1.10.0
type GetJobInput struct { // The ARN of the job to retrieve. // // This member is required. JobArn *string // A list of attributes to return information for. AdditionalAttributeNames []types.HybridJobAdditionalAttributeName // contains filtered or unexported fields }
type GetJobOutput ¶ added in v1.10.0
type GetJobOutput struct { // Definition of the Amazon Braket job created. Specifies the container image the // job uses, information about the Python scripts used for entry and training, and // the user-defined metrics used to evaluation the job. // // This member is required. AlgorithmSpecification *types.AlgorithmSpecification // The date and time that the Amazon Braket job was created. // // This member is required. CreatedAt *time.Time // The resource instances to use while running the hybrid job on Amazon Braket. // // This member is required. InstanceConfig *types.InstanceConfig // The ARN of the Amazon Braket job. // // This member is required. JobArn *string // The name of the Amazon Braket job. // // This member is required. JobName *string // The path to the S3 location where job artifacts are stored and the encryption // key used to store them there. // // This member is required. OutputDataConfig *types.JobOutputDataConfig // The Amazon Resource Name (ARN) of an IAM role that Amazon Braket can assume to // perform tasks on behalf of a user. It can access user resources, run an Amazon // Braket job container on behalf of user, and output resources to the s3 buckets // of a user. // // This member is required. RoleArn *string // The status of the Amazon Braket job. // // This member is required. Status types.JobPrimaryStatus // The list of Amazon Braket resources associated with the hybrid job. Associations []types.Association // The billable time the Amazon Braket job used to complete. BillableDuration *int32 // Information about the output locations for job checkpoint data. CheckpointConfig *types.JobCheckpointConfig // The quantum processing unit (QPU) or simulator used to run the Amazon Braket // job. DeviceConfig *types.DeviceConfig // The date and time that the Amazon Braket job ended. EndedAt *time.Time // Details about the type and time events occurred related to the Amazon Braket // job. Events []types.JobEventDetails // A description of the reason why an Amazon Braket job failed, if it failed. FailureReason *string // Algorithm-specific parameters used by an Amazon Braket job that influence the // quality of the traiing job. The values are set with a string of JSON key:value // pairs, where the key is the name of the hyperparameter and the value is the // value of th hyperparameter. HyperParameters map[string]string // A list of parameters that specify the name and type of input data and where it // is located. InputDataConfig []types.InputFileConfig // Queue information for the requested job. Only returned if QueueInfo is // specified in the additionalAttributeNames" field in the GetJob API request. QueueInfo *types.HybridJobQueueInfo // The date and time that the Amazon Braket job was started. StartedAt *time.Time // The user-defined criteria that specifies when to stop a job running. StoppingCondition *types.JobStoppingCondition // A tag object that consists of a key and an optional value, used to manage // metadata for Amazon Braket resources. Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type GetQuantumTaskInput ¶
type GetQuantumTaskInput struct { // The ARN of the task to retrieve. // // This member is required. QuantumTaskArn *string // A list of attributes to return information for. AdditionalAttributeNames []types.QuantumTaskAdditionalAttributeName // contains filtered or unexported fields }
type GetQuantumTaskOutput ¶
type GetQuantumTaskOutput struct { // The time at which the task was created. // // This member is required. CreatedAt *time.Time // The ARN of the device the task was run on. // // This member is required. DeviceArn *string // The parameters for the device on which the task ran. // // This value conforms to the media type: application/json // // This member is required. DeviceParameters *string // The S3 bucket where task results are stored. // // This member is required. OutputS3Bucket *string // The folder in the S3 bucket where task results are stored. // // This member is required. OutputS3Directory *string // The ARN of the task. // // This member is required. QuantumTaskArn *string // The number of shots used in the task. // // This member is required. Shots *int64 // The status of the task. // // This member is required. Status types.QuantumTaskStatus // The list of Amazon Braket resources associated with the quantum task. Associations []types.Association // The time at which the task ended. EndedAt *time.Time // The reason that a task failed. FailureReason *string // The ARN of the Amazon Braket job associated with the quantum task. JobArn *string // Queue information for the requested quantum task. Only returned if QueueInfo is // specified in the additionalAttributeNames" field in the GetQuantumTask API // request. QueueInfo *types.QuantumTaskQueueInfo // The tags that belong to this task. Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type HTTPSignerV4 ¶
type IdempotencyTokenProvider ¶ added in v1.10.2
IdempotencyTokenProvider interface for providing idempotency token
type ListTagsForResourceInput ¶ added in v1.2.0
type ListTagsForResourceInput struct { // Specify the resourceArn for the resource whose tags to display. // // This member is required. ResourceArn *string // contains filtered or unexported fields }
type ListTagsForResourceOutput ¶ added in v1.2.0
type ListTagsForResourceOutput struct { // Displays the key, value pairs of tags associated with this resource. Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
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 // Indicates how aws account ID is applied in endpoint2.0 routing AccountIDEndpointMode aws.AccountIDEndpointMode // 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.22.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 SearchDevicesAPIClient ¶ added in v0.30.0
type SearchDevicesAPIClient interface {
SearchDevices(context.Context, *SearchDevicesInput, ...func(*Options)) (*SearchDevicesOutput, error)
}
SearchDevicesAPIClient is a client that implements the SearchDevices operation.
type SearchDevicesInput ¶
type SearchDevicesInput struct { // The filter values to use to search for a device. // // This member is required. Filters []types.SearchDevicesFilter // The maximum number of results to return in the response. MaxResults *int32 // A token used for pagination of results returned in the response. Use the token // returned from the previous request continue results where the previous request // ended. NextToken *string // contains filtered or unexported fields }
type SearchDevicesOutput ¶
type SearchDevicesOutput struct { // An array of DeviceSummary objects for devices that match the specified filter // values. // // This member is required. Devices []types.DeviceSummary // A token used for pagination of results, or null if there are no additional // results. Use the token value in a subsequent request to continue results where // the previous request ended. NextToken *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type SearchDevicesPaginator ¶ added in v0.30.0
type SearchDevicesPaginator struct {
// contains filtered or unexported fields
}
SearchDevicesPaginator is a paginator for SearchDevices
func NewSearchDevicesPaginator ¶ added in v0.30.0
func NewSearchDevicesPaginator(client SearchDevicesAPIClient, params *SearchDevicesInput, optFns ...func(*SearchDevicesPaginatorOptions)) *SearchDevicesPaginator
NewSearchDevicesPaginator returns a new SearchDevicesPaginator
func (*SearchDevicesPaginator) HasMorePages ¶ added in v0.30.0
func (p *SearchDevicesPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*SearchDevicesPaginator) NextPage ¶ added in v0.30.0
func (p *SearchDevicesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*SearchDevicesOutput, error)
NextPage retrieves the next SearchDevices page.
type SearchDevicesPaginatorOptions ¶ added in v0.30.0
type SearchDevicesPaginatorOptions struct { // The maximum number of results to return in the response. 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 }
SearchDevicesPaginatorOptions is the paginator options for SearchDevices
type SearchJobsAPIClient ¶ added in v1.10.0
type SearchJobsAPIClient interface {
SearchJobs(context.Context, *SearchJobsInput, ...func(*Options)) (*SearchJobsOutput, error)
}
SearchJobsAPIClient is a client that implements the SearchJobs operation.
type SearchJobsInput ¶ added in v1.10.0
type SearchJobsInput struct { // The filter values to use when searching for a job. // // This member is required. Filters []types.SearchJobsFilter // The maximum number of results to return in the response. MaxResults *int32 // A token used for pagination of results returned in the response. Use the token // returned from the previous request to continue results where the previous // request ended. NextToken *string // contains filtered or unexported fields }
type SearchJobsOutput ¶ added in v1.10.0
type SearchJobsOutput struct { // An array of JobSummary objects for devices that match the specified filter // values. // // This member is required. Jobs []types.JobSummary // A token used for pagination of results, or null if there are no additional // results. Use the token value in a subsequent request to continue results where // the previous request ended. NextToken *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type SearchJobsPaginator ¶ added in v1.10.0
type SearchJobsPaginator struct {
// contains filtered or unexported fields
}
SearchJobsPaginator is a paginator for SearchJobs
func NewSearchJobsPaginator ¶ added in v1.10.0
func NewSearchJobsPaginator(client SearchJobsAPIClient, params *SearchJobsInput, optFns ...func(*SearchJobsPaginatorOptions)) *SearchJobsPaginator
NewSearchJobsPaginator returns a new SearchJobsPaginator
func (*SearchJobsPaginator) HasMorePages ¶ added in v1.10.0
func (p *SearchJobsPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*SearchJobsPaginator) NextPage ¶ added in v1.10.0
func (p *SearchJobsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*SearchJobsOutput, error)
NextPage retrieves the next SearchJobs page.
type SearchJobsPaginatorOptions ¶ added in v1.10.0
type SearchJobsPaginatorOptions struct { // The maximum number of results to return in the response. 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 }
SearchJobsPaginatorOptions is the paginator options for SearchJobs
type SearchQuantumTasksAPIClient ¶ added in v0.30.0
type SearchQuantumTasksAPIClient interface {
SearchQuantumTasks(context.Context, *SearchQuantumTasksInput, ...func(*Options)) (*SearchQuantumTasksOutput, error)
}
SearchQuantumTasksAPIClient is a client that implements the SearchQuantumTasks operation.
type SearchQuantumTasksInput ¶
type SearchQuantumTasksInput struct { // Array of SearchQuantumTasksFilter objects. // // This member is required. Filters []types.SearchQuantumTasksFilter // Maximum number of results to return in the response. MaxResults *int32 // A token used for pagination of results returned in the response. Use the token // returned from the previous request continue results where the previous request // ended. NextToken *string // contains filtered or unexported fields }
type SearchQuantumTasksOutput ¶
type SearchQuantumTasksOutput struct { // An array of QuantumTaskSummary objects for tasks that match the specified // filters. // // This member is required. QuantumTasks []types.QuantumTaskSummary // A token used for pagination of results, or null if there are no additional // results. Use the token value in a subsequent request to continue results where // the previous request ended. NextToken *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type SearchQuantumTasksPaginator ¶ added in v0.30.0
type SearchQuantumTasksPaginator struct {
// contains filtered or unexported fields
}
SearchQuantumTasksPaginator is a paginator for SearchQuantumTasks
func NewSearchQuantumTasksPaginator ¶ added in v0.30.0
func NewSearchQuantumTasksPaginator(client SearchQuantumTasksAPIClient, params *SearchQuantumTasksInput, optFns ...func(*SearchQuantumTasksPaginatorOptions)) *SearchQuantumTasksPaginator
NewSearchQuantumTasksPaginator returns a new SearchQuantumTasksPaginator
func (*SearchQuantumTasksPaginator) HasMorePages ¶ added in v0.30.0
func (p *SearchQuantumTasksPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*SearchQuantumTasksPaginator) NextPage ¶ added in v0.30.0
func (p *SearchQuantumTasksPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*SearchQuantumTasksOutput, error)
NextPage retrieves the next SearchQuantumTasks page.
type SearchQuantumTasksPaginatorOptions ¶ added in v0.30.0
type SearchQuantumTasksPaginatorOptions struct { // Maximum number of results to return in the response. 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 }
SearchQuantumTasksPaginatorOptions is the paginator options for SearchQuantumTasks
type TagResourceInput ¶ added in v1.2.0
type TagResourceOutput ¶ added in v1.2.0
type TagResourceOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type UntagResourceInput ¶ added in v1.2.0
type UntagResourceInput struct { // Specify the resourceArn for the resource from which to remove the tags. // // This member is required. ResourceArn *string // Specify the keys for the tags to remove from the resource. // // This member is required. TagKeys []string // contains filtered or unexported fields }
type UntagResourceOutput ¶ added in v1.2.0
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_CancelJob.go
- api_op_CancelQuantumTask.go
- api_op_CreateJob.go
- api_op_CreateQuantumTask.go
- api_op_GetDevice.go
- api_op_GetJob.go
- api_op_GetQuantumTask.go
- api_op_ListTagsForResource.go
- api_op_SearchDevices.go
- api_op_SearchJobs.go
- api_op_SearchQuantumTasks.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