// Creates a self-service action.
Creates a self-service action.
// Creates a self - service action .
func (c *Client) CreateServiceAction(ctx context.Context, params *CreateServiceActionInput, optFns ...func(*Options)) (*CreateServiceActionOutput, error) {
	if params == nil {
		params = &CreateServiceActionInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "CreateServiceAction", params, optFns, addOperationCreateServiceActionMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*CreateServiceActionOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) CreateServiceAction ( ctx context . Context , params * CreateServiceActionInput , optFns ... func ( * Options ) ) ( * CreateServiceActionOutput , error ) { if params == nil { params = & CreateServiceActionInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationCreateServiceActionMiddlewares ) if err != nil { return nil , err } out := result . ( * CreateServiceActionOutput ) out . ResultMetadata = metadata return out , nil }
Creates a self-service action.
Creates a self - service action .