Documentation
¶
Overview ¶
Package script provides the client and types for making API requests to script.
See https://docs.aws.amazon.com/goto/WebAPI/script-2015-09-01 for more information on this service.
See script package documentation for more information. https://docs.aws.amazon.com/sdk-for-go/api/service/script/
Using the Client ¶
To use script with the SDK use the New function to create a new service client. With that client you can make API requests to the service. These clients are safe to use concurrently.
See the SDK's documentation for more information on how to use the SDK. https://docs.aws.amazon.com/sdk-for-go/api/
See aws.Config documentation for more information on configuring SDK clients. https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config
See the script client for more information on creating client for this service. https://docs.aws.amazon.com/sdk-for-go/api/service/script/#New
Index ¶
Constants ¶
const ( ServiceName = "script" // Service's name ServiceID = "Script" // Service's identifier EndpointsID = "script" // Service's Endpoint identifier )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶ added in v0.0.2
Client provides the API operation methods for making requests to script. See this package's package overview docs for details on the service.
The client's methods are safe to use concurrently. It is not safe to modify mutate any of the struct's properties though.
func New ¶
New creates a new instance of the client from the provided Config.
Example:
// Create a client from just a config. svc := script.New(myConfig)
func (*Client) ExecuteScriptRequest ¶ added in v0.0.2
func (c *Client) ExecuteScriptRequest(input *ExecuteScriptInput) ExecuteScriptRequest
ExecuteScriptRequest returns a request value for making API operation for NIFCLOUD Script.
// Example sending a request using ExecuteScriptRequest. req := client.ExecuteScriptRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/script-2015-09-01/ExecuteScript
type ExecuteScriptInput ¶
type ExecuteScriptInput struct { Body *string `locationName:"Body" type:"string"` Header *string `locationName:"Header" type:"string"` Method *string `locationName:"Method" type:"string"` Query *string `locationName:"Query" type:"string"` ScriptIdentifier *string `locationName:"ScriptIdentifier" type:"string"` // contains filtered or unexported fields }
func (ExecuteScriptInput) String ¶
func (s ExecuteScriptInput) String() string
String returns the string representation
type ExecuteScriptOutput ¶
type ExecuteScriptOutput struct { Result *Result `type:"structure"` // contains filtered or unexported fields }
func (ExecuteScriptOutput) String ¶
func (s ExecuteScriptOutput) String() string
String returns the string representation
type ExecuteScriptRequest ¶
type ExecuteScriptRequest struct { *aws.Request Input *ExecuteScriptInput Copy func(*ExecuteScriptInput) ExecuteScriptRequest }
ExecuteScriptRequest is the request type for the ExecuteScript API operation.
func (ExecuteScriptRequest) Send ¶
func (r ExecuteScriptRequest) Send(ctx context.Context) (*ExecuteScriptResponse, error)
Send marshals and sends the ExecuteScript API request.
type ExecuteScriptResponse ¶ added in v0.0.2
type ExecuteScriptResponse struct { *ExecuteScriptOutput // contains filtered or unexported fields }
ExecuteScriptResponse is the response type for the ExecuteScript API operation.
func (*ExecuteScriptResponse) SDKResponseMetdata ¶ added in v0.0.2
func (r *ExecuteScriptResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the ExecuteScript request.
type Result ¶
type Result struct { RequestBody *string `type:"string"` RequestHeader *string `type:"string"` RequestQuery *string `type:"string"` ResponseData *string `type:"string"` ResponseHeader *string `type:"string"` ResponseStatus *int64 `type:"integer"` ScriptIdentifier *string `type:"string"` // contains filtered or unexported fields }
Source Files
¶
Directories
¶
Path | Synopsis |
---|---|
Package scriptiface provides an interface to enable mocking the NIFCLOUD Script service client for testing your code.
|
Package scriptiface provides an interface to enable mocking the NIFCLOUD Script service client for testing your code. |